#18649 [NEW]: Documentation for array_diff incomplete
| From: | nohn@php.net | Date: | Tue, 30 Jul 2002 13:48:01 +0000 |
| Subject: | #18649 [NEW]: Documentation for array_diff incomplete | ||
| Groups: | php.bugs php.doc | ||
| Request: | Send a blank email to php-bugs+get-15575@lists.php.net to get a copy of this message | ||
From: nohn@php.net
Operating system: All
PHP version: 4CVS-2002-07-30
PHP Bug Type: Documentation problem
Bug description: Documentation for array_diff incomplete
It should be mentioned that array_diff only checks one dimension of an
n-dimensional array.
for example:
Array
(
[0] => Array
(
[0] => "test"
[1] => "lala"
)
)
is the same like
Array
(
[0] => Array
(
[0] => "test"
[1] => "bubu"
)
)
when checking Array with array_diff.
Only when checking Array[0] with array_diff it returns that the arrays
differ
--
Edit bug report at http://bugs.php.net/?id=18649&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18649&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18649&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18649&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18649&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18649&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18649&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18649&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18649&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18649&r=globals