note 103620 added to language.types.null
| From: | quickpick at osu1 dot php dot net | Date: | Fri, 22 Apr 2011 22:36:37 +0000 |
| Subject: | note 103620 added to language.types.null | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179096@lists.php.net to get a copy of this message | ||
Note: empty array is converted to null by non-strict equal '==' comparison. Use is_null()
or '===' if there is possible of getting empty array.
$a = array();
$a == null <== return true
$a === null < == return false
is_null($a) <== return false
----
Server IP: 69.147.83.197
Probable Submitter: 24.87.117.199
----
Manual Page -- http://www.php.net/manual/en/language.types.null.php
Edit -- https://master.php.net/note/edit/103620
Del: integrated -- https://master.php.net/note/delete/103620/integrated
Del: useless -- https://master.php.net/note/delete/103620/useless
Del: bad code -- https://master.php.net/note/delete/103620/bad+code
Del: spam -- https://master.php.net/note/delete/103620/spam
Del: non-english -- https://master.php.net/note/delete/103620/non-english
Del: in docs -- https://master.php.net/note/delete/103620/in+docs
Del: other reasons-- https://master.php.net/note/delete/103620
Reject -- https://master.php.net/note/reject/103620
Search -- https://master.php.net/manage/user-notes.php