note 99429 deleted from function.is-array by nikic

From: Date: Fri, 02 Sep 2011 15:13:04 +0000
Subject: note 99429 deleted from function.is-array by nikic
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-182901@lists.php.net to get a copy of this message
Note Submitter: cws1989 at gmail dot com ---- Note that in the following case, other than returning false, it will also produce an E_NOTICE <?php error_reporting(E_ALL | E_STRICT); $emptyArray = array(); if (is_array($emptyArray[0]) === false) { echo 'false returned'; } ?> Output: Notice: Undefined offset: 0 in test.php on line 5 false returned

« previous php.notes (#182901) next »