note 83083 added to function.array-diff
| From: | phpnet at freshsite dot de | Date: | Fri, 09 May 2008 08:12:45 +0000 |
| Subject: | note 83083 added to function.array-diff | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-139209@lists.php.net to get a copy of this message | ||
Do you look for a function which tells you only, if two n-dimensional array are exactly the same? If
you do, array_diff() is not your function! Try this:
function is_cloned($a1, $a2){
if(serialize($a1)===serialize($a2)) return true;
else return false;
}
----
Server IP: 217.160.72.57
Probable Submitter: 85.8.70.98
----
Manual Page -- http://www.php.net/manual/en/function.array-diff.php
Edit -- https://master.php.net/note/edit/83083
Del: integrated -- https://master.php.net/note/delete/83083/integrated
Del: useless -- https://master.php.net/note/delete/83083/useless
Del: bad code -- https://master.php.net/note/delete/83083/bad+code
Del: spam -- https://master.php.net/note/delete/83083/spam
Del: non-english -- https://master.php.net/note/delete/83083/non-english
Del: in docs -- https://master.php.net/note/delete/83083/in+docs
Del: other reasons-- https://master.php.net/note/delete/83083
Reject -- https://master.php.net/note/reject/83083
Search -- https://master.php.net/manage/user-notes.php