note 66837 added to function.array-diff-assoc
| From: | AlexanderPodgorny at osu1 dot php dot net | Date: | Tue, 30 May 2006 21:30:27 +0000 |
| Subject: | note 66837 added to function.array-diff-assoc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-112567@lists.php.net to get a copy of this message | ||
NOTE: the diff_array also removes all the duplicate values that match to the values in the second
array:
<?
$array1 = array("a","b","c","a","a");
$array2 = array("a");
$diff = array_diff($array1,$array2);
// yields: array("b","c") the duplicate "a" values are removed
?>
----
Server IP: 64.71.164.2
Probable Submitter: 63.251.211.5
----
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-assoc.php
Edit -- http://master.php.net/note/edit/66837
Del: integrated -- http://master.php.net/note/delete/66837/integrated
Del: useless -- http://master.php.net/note/delete/66837/useless
Del: bad code -- http://master.php.net/note/delete/66837/bad+code
Del: spam -- http://master.php.net/note/delete/66837/spam
Del: non-english -- http://master.php.net/note/delete/66837/non-english
Del: in docs -- http://master.php.net/note/delete/66837/in+docs
Del: other reasons-- http://master.php.net/note/delete/66837
Reject -- http://master.php.net/note/reject/66837
Search -- http://master.php.net/manage/user-notes.php