note 30649 rejected from function.array-diff by nicos
| From: | nicos@php.net | Date: | Tue, 25 Mar 2003 00:56:20 +0000 |
| Subject: | note 30649 rejected from function.array-diff by nicos | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-45771@lists.php.net to get a copy of this message | ||
When executing this code:
$a = array(1,2,3,4,5,6,7,8,9);
$b = array(3,4,5);
$test=array_diff($a,$b);
$i=0;
while($test[$i])
{
echo "$test[$i]<br>";
$i++;
}
the result is:
1
2
The expected result of course is
1
2
6
7
8
9
bug perhaps?