note 86581 added to language.types.array
| From: | hek at theeks dot net | Date: | Fri, 24 Oct 2008 15:58:23 +0000 |
| Subject: | note 86581 added to language.types.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145698@lists.php.net to get a copy of this message | ||
Note that NULL is not exactly a scalar value, so the following two lines of code do NOT produce
identical arrays.
$x = (array) null; // $x ends up an empty array (zero elements)
$y = array(null); // $y ends up an array containing one element (a null)
----
Server IP: 64.71.164.2
Probable Submitter: 65.207.72.66
----
Manual Page -- http://www.php.net/manual/en/language.types.array.php
Edit -- https://master.php.net/note/edit/86581
Del: integrated -- https://master.php.net/note/delete/86581/integrated
Del: useless -- https://master.php.net/note/delete/86581/useless
Del: bad code -- https://master.php.net/note/delete/86581/bad+code
Del: spam -- https://master.php.net/note/delete/86581/spam
Del: non-english -- https://master.php.net/note/delete/86581/non-english
Del: in docs -- https://master.php.net/note/delete/86581/in+docs
Del: other reasons-- https://master.php.net/note/delete/86581
Reject -- https://master.php.net/note/reject/86581
Search -- https://master.php.net/manage/user-notes.php