note 9553 added to array_diff
| From: | jzago at ifhamy dot insa-lyon dot fr | Date: | Fri, 10 Nov 2000 15:05:14 +0000 |
| Subject: | note 9553 added to array_diff | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7576@lists.php.net to get a copy of this message | ||
--- code ---
print_r ($valeurs);
print_r ($dummy);
print_r (array_diff ($valeurs, $dummy));
--- output ---
Array ( [19] => 1 )
Array ( [0] => 1 )
Array ( )
Remember folks, it diffs the values, not the keys !
http://www.php.net/manual/function.array-diff.php