Doc #55343 [Opn->Asn]: documentation needs to be more clear

From: Date: Tue, 02 Aug 2011 09:23:15 +0000
Subject: Doc #55343 [Opn->Asn]: documentation needs to be more clear
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6962@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: Open +Status: Assigned Type: Documentation Problem Package: Documentation problem Operating System: irrelevant PHP Version: Irrelevant -Assigned To: +Assigned To: aharvey Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#6962) next »