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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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 09:02:40 2024 UTC