note 83083 deleted from function.array-diff by danbrown

From: Date: Thu, 10 Sep 2009 00:57:45 +0000
Subject: note 83083 deleted from function.array-diff by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160392@lists.php.net to get a copy of this message
Note Submitter: phpnet at freshsite dot de ---- 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; }

« previous php.notes (#160392) next »