note 111103 added to function.array-diff-assoc
| From: | nanhe4it at gmail dot com | Date: | Tue, 15 Jan 2013 07:17:42 +0000 |
| Subject: | note 111103 added to function.array-diff-assoc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193071@lists.php.net to get a copy of this message | ||
$array1 = array("a" => "green", "b" => "brown",
"c" => "blue", "red");
$array2 = array("a" => "green", "yellow", "red");
$result = array_diff_assoc($array1, $array2);
print_r($result);
Ouput
Array ( [b] => brown [c] => blue [0] => red )
$array1 = array("a" => "green", "b" => "brown",
"c" => "blue", "red");
$array2 = array("a" => "green", "red","yellow");
$result = array_diff_assoc($array1, $array2);
print_r($result);
Ouput
Array ( [b] => brown [c] => blue )
----
Server IP: 69.147.83.199
Probable Submitter: 210.7.74.130
----
Manual Page -- http://php.net/manual/en/function.array-diff-assoc.php
Edit -- https://master.php.net/note/edit/111103
Del: integrated -- https://master.php.net/note/delete/111103/integrated
Del: useless -- https://master.php.net/note/delete/111103/useless
Del: bad code -- https://master.php.net/note/delete/111103/bad+code
Del: spam -- https://master.php.net/note/delete/111103/spam
Del: non-english -- https://master.php.net/note/delete/111103/non-english
Del: in docs -- https://master.php.net/note/delete/111103/in+docs
Del: other reasons-- https://master.php.net/note/delete/111103
Reject -- https://master.php.net/note/reject/111103
Search -- https://master.php.net/manage/user-notes.php