note 68399 added to function.array-diff
| From: | Colin at osu1 dot php dot net | Date: | Tue, 25 Jul 2006 16:44:24 +0000 |
| Subject: | note 68399 added to function.array-diff | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-115164@lists.php.net to get a copy of this message | ||
Undocumented return: it appears this will return NULL if an error occurs (e.g., an argument is not
an array) and is not caught.
<?
@array_diff(NULL, array(1));
@array_diff(array(1), NULL);
@array_diff();
?>
All return NULL. (Note the "@")
----
Server IP: 216.194.113.175
Probable Submitter: 65.125.133.211
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.array-diff.php
Edit -- http://master.php.net/note/edit/68399
Del: integrated -- http://master.php.net/note/delete/68399/integrated
Del: useless -- http://master.php.net/note/delete/68399/useless
Del: bad code -- http://master.php.net/note/delete/68399/bad+code
Del: spam -- http://master.php.net/note/delete/68399/spam
Del: non-english -- http://master.php.net/note/delete/68399/non-english
Del: in docs -- http://master.php.net/note/delete/68399/in+docs
Del: other reasons-- http://master.php.net/note/delete/68399
Reject -- http://master.php.net/note/reject/68399
Search -- http://master.php.net/manage/user-notes.php