note 35733 added to function.array-diff-assoc

From: Date: Fri, 12 Sep 2003 13:55:39 +0000
Subject: note 35733 added to function.array-diff-assoc
Groups: php.notes 
Request: Send a blank email to php-notes+get-56393@lists.php.net to get a copy of this message
The user contributed array_diff_assoc_recursive function is good except for the original array_diff_assoc always (?) returns an array. Therefore I propose that $difference is initially set to an empty array (and the array is always returned), and the comparison against FALSE is replaced by count($new_diff). At least that's the modifications I made to run it they way my code expects. ---- Manual Page -- http://www.php.net/manual/en/function.array-diff-assoc.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35733 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35733&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35733&report=yes

« previous php.notes (#56393) next »