consider this if you will:

<?

echo <<< ___THEEND
EXPECT:
isset(): true;
is_null(): true;

REALITY:
___THEEND;

$varIsSet = null;
var_dump( isset($varIsSet) );
var_dump( is_null($varIsSet) );

?>

I would have thought that having set the variable to something even if its 'nothing' would mean it is set in the current variable scope.

either that or it makes unset() redundant, no? and the PHP documentation
leaves me with the impression that is_null() works with 'set' variables (and would give an E_NOTICE if an unset variable is set)


is there a difference between null and unset()ing? does a variable that is null take up no memory (rather like variable that have never been defined or removed completely)

apologies if this is misplaced.

rgds,

Jochem

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to