<?php
$foo = null;
echo $foo;
echo $nonexistent;
?>

You will get PHP warnings on line 4 that $nonexistent doesn't exist, but NO warnings on line 3 about $foo.


Stop repeating obvious stuff please, everyone on the list knows this.




PHP doesn't treat them the same, so how are we. PHP itself isn't consistent, and
why we all asked for variable_exists() to begin with. It helps clear up the inconsistency w/ isset() and PHP's handling of
echo $foo; vs. echo $nonexistent.



No, clearing your `inconsitency' would mean making PHP issue a notice
whenever you read a null value.


I guess we all just have to agree to disagree on the issue, and have PHP stay the way it is unfortunatly.
:(


Walt

Reply via email to