undefined var has a value

From: Date: Fri, 30 Jun 2000 01:45:21 +0000
Subject: undefined var has a value
Groups: php.db 
Request: Send a blank email to php-db+get-766@lists.php.net to get a copy of this message
What's the value of the an undefined var in PHP? if $undefined has never been defined before and I do this ---------------------------- if ($undefined == 0) echo "It has zero value"; else echo "It has nozero value"; --------------------------- It seems to return zero value. This is not documented in the online PHP manual. Should I be expecting this in future releases or is this just fluke? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Arthur Yeo

« previous php.db (#766) next »