svn: /phpdoc/en/trunk/reference/array/functions/ array-intersect-assoc.xml

From: Date: Tue, 02 Aug 2011 09:33:49 +0000
Subject: svn: /phpdoc/en/trunk/reference/array/functions/ array-intersect-assoc.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-8572@lists.php.net to get a copy of this message
aharvey Tue, 02 Aug 2011 09:33:49 +0000 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. Bug: https://bugs.php.net/55343 (Assigned) documentation needs to be more clear Changed paths: U phpdoc/en/trunk/reference/array/functions/array-intersect-assoc.xml Modified: phpdoc/en/trunk/reference/array/functions/array-intersect-assoc.xml =================================================================== --- phpdoc/en/trunk/reference/array/functions/array-intersect-assoc.xml 2011-08-02 09:11:15 UTC (rev 314090) +++ phpdoc/en/trunk/reference/array/functions/array-intersect-assoc.xml 2011-08-02 09:33:49 UTC (rev 314091) @@ -71,7 +71,7 @@ <![CDATA[ <?php $array1 = array("a" => "green", "b" => "brown", "c" => "blue", "red"); -$array2 = array("a" => "green", "yellow", "red"); +$array2 = array("a" => "green", "b" => "yellow", "blue", "red"); $result_array = array_intersect_assoc($array1, $array2); print_r($result_array); ?> @@ -94,7 +94,8 @@ The value <literal>"red"</literal> is not returned because in <varname>$array1</varname> its key is <literal>0</literal> while the key of "red" in <varname>$array2</varname> is - <literal>1</literal>. + <literal>1</literal>, and the key <literal>"b"</literal> is not returned + because its values are different in each array. </simpara> <simpara> The two values from the <literal>key =&gt; value</literal> pairs are

« previous php.doc.cvs (#8572) next »