Doc #55343 [Asn->Csd]: documentation needs to be more clear
| From: | aharvey@php.net | Date: | Tue, 02 Aug 2011 09:34:03 +0000 |
| Subject: | Doc #55343 [Asn->Csd]: documentation needs to be more clear | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-6963@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55343&edit=1
ID: 55343
Updated by: aharvey@php.net
Reported by: bas5winkel at gmail dot com
Summary: documentation needs to be more clear
-Status: Assigned
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: irrelevant
PHP Version: Irrelevant
Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2011-08-02 09:33:49] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=314091
Log: Fix doc bug #55343 (documentation needs to be more clear) by making the
array_intersect_assoc() example more explicit.
------------------------------------------------------------------------
[2011-08-02 08:29:28] bas5winkel at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.array-intersect-assoc%23Description
---
Could you maybe add that entries from both arrays are matched based on their key and value pairs?
If in both arrays a certain key exists but the values are different, then it would not be considered
a match.
It took me a while to figure this out.
Thanks in advance!
Test script:
---------------
Another example like this would be helpful to understand the working of the method.
<?PHP
$array1 = array( 1 => 20, 6 => 20);
$array2 = array( 1 => 6, 6 => 20);
$result_array = array_intersect_assoc($array1, $array2);
print_r($result_array);
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55343&edit=1