note 85694 deleted from function.array-diff by cmb
| From: | cmb@php.net | Date: | Sun, 17 Mar 2019 09:25:05 +0000 |
| Subject: | note 85694 deleted from function.array-diff by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210382@lists.php.net to get a copy of this message | ||
Note Submitter: pyerre
----
be careful kids, this function can be tricky
<?php
$tab1=array(0=>"a");
$tab2=array(0=>"a",1=>"b");
print_r(array_diff($tab1,$tab2));
?>
gives
Array
(
)