note 44366 deleted from function.assert by tomsommer

From: Date: Tue, 03 Aug 2004 21:25:29 +0000
Subject: note 44366 deleted from function.assert by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-73879@lists.php.net to get a copy of this message
Note Submitter: php-manual@d51.biz ---- <?php $array = array( 0, 1, 2 ); assert( "is_array( $array )" ); // Fails assert( 'is_array( $array )' ); // Suceeds ?> The first array passes what is perceived to be the string "Array" to is_array(), causing a failure. According to the Sitepoint article referenced above, both should work. As of PHP 5 at least, only the second will work.

« previous php.notes (#73879) next »