note 29011 added to function.is-array

From: Date: Thu, 30 Jan 2003 09:16:32 +0000
Subject: note 29011 added to function.is-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-43125@lists.php.net to get a copy of this message
I have noticed that is_array() acts a bit weird when the argument is an expression, rather than a variable. Working with a multilevel nested array, is_array($bigArray[$part]) does not return what it should, but $column=$bigArray[$part]; and then is_array($column) does the job fine... It looks like this might happen with other is_* functions as well. -- http://www.php.net/manual/en/function.is-array.php http://master.php.net/manage/user-notes.php?action=edit+29011 http://master.php.net/manage/user-notes.php?action=delete+29011 http://master.php.net/manage/user-notes.php?action=reject+29011

« previous php.notes (#43125) next »