Doc #55343 [NEW]: documentation needs to be more clear

From: Date: Tue, 02 Aug 2011 08:29:28 +0000
Subject: Doc #55343 [NEW]: documentation needs to be more clear
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6960@lists.php.net to get a copy of this message
From: Operating system: irrelevant PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:documentation needs to be more clear 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 bug report at https://bugs.php.net/bug.php?id=55343&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55343&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55343&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55343&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55343&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55343&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55343&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55343&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55343&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55343&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55343&r=support Expected behavior: https://bugs.php.net/fix.php?id=55343&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55343&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55343&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55343&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55343&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55343&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55343&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55343&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55343&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55343&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55343&r=mysqlcfg

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