note 35733 deleted from function.array-diff-assoc by aidan
| From: | aidan@php.net | Date: | Tue, 08 Jun 2004 14:17:34 +0000 |
| Subject: | note 35733 deleted from function.array-diff-assoc by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-70454@lists.php.net to get a copy of this message | ||
Note Submitter: anders.carlsson@mds.mdh.se
----
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.