php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #18649 Documentation for array_diff incomplete
Submitted: 2002-07-30 09:48 UTC Modified: 2002-07-30 17:12 UTC
From: nohn@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4CVS-2002-07-30 OS: All
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nohn@php.net
New email:
PHP Version: OS:

 

 [2002-07-30 09:48 UTC] nohn@php.net
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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-30 17:12 UTC] nohn@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 11 08:01:29 2024 UTC