View Single Post
Old 06-22-2016, 02:39 PM  
blackmonsters
Making PHP work
 
blackmonsters's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,238
Quote:
Originally Posted by Colmike7 View Post
Because a null character is not the same as a php null constant.. So it's set.
Didn't test it, though..

<?php

$var;

if(empty($var)) {
echo "This is empty<br>";
}

if(isset($var)) {
echo "This is set<br>";
}

echo "<br>Now you got it";

?>
__________________
Make Money with Porn
blackmonsters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote