PHP 4.0 Bug #6236: array_diff() lost its identity
| From: | waldschrott@php.net | Date: | Fri, 18 Aug 2000 12:36:23 +0000 |
| Subject: | PHP 4.0 Bug #6236: array_diff() lost its identity | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-29399@lists.php.net to get a copy of this message | ||
From: waldschrott@php.net
Operating system: w2k
PHP version: 4.0 Latest CVS (18/08/2000)
PHP Bug Type: Other
Bug description: array_diff() lost its identity
build: 08-14
priority: low
watch the error message, array_diff() tells me to be
array_intersect(), perhaps an issue for a psychiatrist ;)
note the function works perfectly...
<?php
$a=array(1,2,3,4);
$b=array(1,2);
$c=NULL;
var_dump(array_diff($a,$b,$c));
?>