note 1604 deleted from is_array by torben

From: Date: Mon, 14 Aug 2000 20:09:16 +0000
Subject: note 1604 deleted from is_array by torben
Groups: php.notes 
Request: Send a blank email to php-notes+get-1839@lists.php.net to get a copy of this message
Not sure if this is obvious to everyone but me, but <b>any</b> of these is_xxx() functions will set the variable if it's not set, leading to weird results if you're not expecting it. i.e. <pre> $x = is_array($array); echo $isset($array); </pre> will always report TRUE. The isset() must <b>always</b> be done <b>before</b> the check for specific variable types if you're counting on using isset().

« previous php.notes (#1839) next »