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

From: Date: Fri, 12 Aug 2011 01:28:38 +0000
Subject: svn: /phpdoc/es/trunk/reference/array/functions/ array-diff.xml array-intersect-assoc.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-4684@lists.php.net to get a copy of this message
jpberdejo Fri, 12 Aug 2011 01:28:38 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=314806 Log: English version update Changed paths: U phpdoc/es/trunk/reference/array/functions/array-diff.xml U phpdoc/es/trunk/reference/array/functions/array-intersect-assoc.xml Modified: phpdoc/es/trunk/reference/array/functions/array-diff.xml =================================================================== --- phpdoc/es/trunk/reference/array/functions/array-diff.xml 2011-08-11 22:24:33 UTC (rev 314805) +++ phpdoc/es/trunk/reference/array/functions/array-diff.xml 2011-08-12 01:28:38 UTC (rev 314806) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 297028 Maintainer: jpberdejo Status: ready --> +<!-- EN-Revision: 314089 Maintainer: jpberdejo Status: ready --> <refentry xml:id="function.array-diff" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>array_diff</refname> @@ -13,7 +13,7 @@ <type>array</type><methodname>array_diff</methodname> <methodparam><type>array</type><parameter>array1</parameter></methodparam> <methodparam><type>array</type><parameter>array2</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter> ...</parameter></methodparam> + <methodparam choice="opt"><type>array</type><parameter>...</parameter></methodparam> </methodsynopsis> <para> Compara <parameter>array1</parameter> contra <parameter>array2</parameter> y Modified: phpdoc/es/trunk/reference/array/functions/array-intersect-assoc.xml =================================================================== --- phpdoc/es/trunk/reference/array/functions/array-intersect-assoc.xml 2011-08-11 22:24:33 UTC (rev 314805) +++ phpdoc/es/trunk/reference/array/functions/array-intersect-assoc.xml 2011-08-12 01:28:38 UTC (rev 314806) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 297028 Maintainer: jpberdejo Status: ready --> +<!-- EN-Revision: 314091 Maintainer: jpberdejo Status: ready --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.array-intersect-assoc"> <refnamediv> <refname>array_intersect_assoc</refname> @@ -72,7 +72,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); ?> @@ -95,7 +95,8 @@ El valor <literal>"red"</literal> no se retorna porque en <varname>$array1</varname> su key es <literal>0</literal> mientras que la key de "red" en <varname>$array2</varname> es - <literal>1</literal>. + <literal>1</literal> y la key <literal>"b"</literal> no es retornada + debido a que sus valores son diferentes en cada array. </simpara> <simpara> Los dos valores del par <literal>key =&gt; value</literal> son

« previous php.doc.es (#4684) next »