note 106765 deleted from function.array-diff by tularis

From: Date: Mon, 05 Dec 2011 18:27:18 +0000
Subject: note 106765 deleted from function.array-diff by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-184914@lists.php.net to get a copy of this message
Note Submitter: Peter Schaefer ---- Neither array_diff(array_merge(a,b),array_intersect(a,b)) nor array_diff(a,b) will give you an array with the keys where elements have been added or deleted in b in comparision to a. Consider arrays: array('A'=>1, 'B'=>null) array('A'=>null, 'B'=>2)

« previous php.notes (#184914) next »