cvs: phpdoc-es /reference/array/functions array-count-values.xml array-diff-key.xml array-diff-ukey.xml array-intersect-key.xml array-keys.xml
array-merge.xml array-slice.xml array-values.xml array-walk.xml array.xml arsort.xml asort.xml count.xml each.xml extract.xml in-array.xml krsort.xml
ksort.xml reset.xml rsort.xml sort.xml uksort.xml /reference/bzip2/functions bzcompress.xml bzdecompress.xml /reference/mysql/functions
mysql-affected-rows.xml /reference/mysqli/functions mysqli-multi-query.xml

From: Date: Tue, 09 Nov 2004 18:59:10 +0000
Subject: cvs: phpdoc-es /reference/array/functions array-count-values.xml array-diff-key.xml array-diff-ukey.xml array-intersect-key.xml array-keys.xml
array-merge.xml array-slice.xml array-values.xml array-walk.xml array.xml arsort.xml asort.xml count.xml each.xml extract.xml in-array.xml krsort.xml
ksort.xml reset.xml rsort.xml sort.xml uksort.xml /reference/bzip2/functions bzcompress.xml bzdecompress.xml /reference/mysql/functions
mysql-affected-rows.xml /reference/mysqli/functions mysqli-multi-query.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-716@lists.php.net to get a copy of this message
baoengb Tue Nov 9 13:59:10 2004 EDT Modified files: /phpdoc-es/reference/array/functions array-count-values.xml array-diff-key.xml array-diff-ukey.xml array-intersect-key.xml array-keys.xml array-merge.xml array-slice.xml array-values.xml array-walk.xml array.xml arsort.xml asort.xml count.xml each.xml extract.xml in-array.xml krsort.xml ksort.xml reset.xml rsort.xml sort.xml uksort.xml /phpdoc-es/reference/bzip2/functions bzcompress.xml bzdecompress.xml /phpdoc-es/reference/mysql/functions mysql-affected-rows.xml /phpdoc-es/reference/mysqli/functions mysqli-multi-query.xml Log: sync con version inglesa

http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/array-count-values.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/array/functions/array-count-values.xml diff -u phpdoc-es/reference/array/functions/array-count-values.xml:1.2 phpdoc-es/reference/array/functions/array-count-values.xml:1.3 --- phpdoc-es/reference/array/functions/array-count-values.xml:1.2 Mon Aug 23 12:52:57 2004 +++ phpdoc-es/reference/array/functions/array-count-values.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.10 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.11 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.array-count-values"> <refnamediv> @@ -30,9 +30,7 @@ ?> ]]> </programlisting> - <para> - La salida del anterior ser&aacute;: - </para> + &example.outputs; <screen> <![CDATA[ Array http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/array-diff-key.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/array/functions/array-diff-key.xml diff -u phpdoc-es/reference/array/functions/array-diff-key.xml:1.1 phpdoc-es/reference/array/functions/array-diff-key.xml:1.2 --- phpdoc-es/reference/array/functions/array-diff-key.xml:1.1 Mon Aug 23 12:52:57 2004 +++ phpdoc-es/reference/array/functions/array-diff-key.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: baoengb Status: ready --> <refentry id="function.array-diff-key"> <refnamediv> <refname>array_diff_key</refname> @@ -36,9 +36,7 @@ ?> ]]> </programlisting> - <para> - La salida del ejemplo anterior ser&aacute;: - </para> + &example.outputs; <screen> <![CDATA[ array(2) { http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/array-diff-ukey.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/array/functions/array-diff-ukey.xml diff -u phpdoc-es/reference/array/functions/array-diff-ukey.xml:1.2 phpdoc-es/reference/array/functions/array-diff-ukey.xml:1.3 --- phpdoc-es/reference/array/functions/array-diff-ukey.xml:1.2 Wed Sep 1 18:13:17 2004 +++ phpdoc-es/reference/array/functions/array-diff-ukey.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 Maintainer: baoengb Status:ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.2 Maintainer: baoengb Status:ready --> <refentry id="function.array-diff-ukey"> <refnamediv> <refname>array_diff_ukey</refname> @@ -53,9 +53,7 @@ ?> ]]> </programlisting> - <para> - El ejemplo anterior producir&aacute; la siguiente salida: - </para> + &example.outputs; <screen> <![CDATA[ array(2) { http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/array-intersect-key.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/array/functions/array-intersect-key.xml diff -u phpdoc-es/reference/array/functions/array-intersect-key.xml:1.1 phpdoc-es/reference/array/functions/array-intersect-key.xml:1.2 --- phpdoc-es/reference/array/functions/array-intersect-key.xml:1.1 Mon Aug 23 12:52:57 2004 +++ phpdoc-es/reference/array/functions/array-intersect-key.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: baoengb Status: ready --> <refentry id="function.array-intersect-key"> <refnamediv> <refname>array_intersect_key</refname> @@ -33,9 +33,7 @@ ?> ]]> </programlisting> - <para> - El ejemplo anterior producir&aacute; la siguiente salida: - </para> + &example.outputs; <screen> <![CDATA[ array(2) { http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/array-keys.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/array/functions/array-keys.xml diff -u phpdoc-es/reference/array/functions/array-keys.xml:1.3 phpdoc-es/reference/array/functions/array-keys.xml:1.4 --- phpdoc-es/reference/array/functions/array-keys.xml:1.3 Tue Sep 7 14:03:03 2004 +++ phpdoc-es/reference/array/functions/array-keys.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.9 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.10 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.array-keys"> <refnamediv> @@ -44,9 +44,7 @@ ?> ]]> </programlisting> - <para> - La salida del ejemplo anterior ser&aacute;: - </para> + &example.outputs; <screen> <![CDATA[ Array http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/array-merge.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/array/functions/array-merge.xml diff -u phpdoc-es/reference/array/functions/array-merge.xml:1.2 phpdoc-es/reference/array/functions/array-merge.xml:1.3 --- phpdoc-es/reference/array/functions/array-merge.xml:1.2 Mon Aug 23 12:52:57 2004 +++ phpdoc-es/reference/array/functions/array-merge.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.13 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.14 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.array-merge"> <refnamediv> @@ -132,9 +132,7 @@ ?> ]]> </programlisting> - <para> - La salida es: - </para> + &example.outputs; <screen role="php"> <![CDATA[ Array http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/array-slice.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/array/functions/array-slice.xml diff -u phpdoc-es/reference/array/functions/array-slice.xml:1.3 phpdoc-es/reference/array/functions/array-slice.xml:1.4 --- phpdoc-es/reference/array/functions/array-slice.xml:1.3 Fri Oct 1 15:01:53 2004 +++ phpdoc-es/reference/array/functions/array-slice.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.9 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.10 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.array-slice"> <refnamediv> @@ -59,9 +59,7 @@ ?> ]]> </programlisting> - <para> - El ejemplo anterior regresar&aacute;: - </para> + &example.outputs; <screen> <![CDATA[ Array http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/array-values.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/array/functions/array-values.xml diff -u phpdoc-es/reference/array/functions/array-values.xml:1.2 phpdoc-es/reference/array/functions/array-values.xml:1.3 --- phpdoc-es/reference/array/functions/array-values.xml:1.2 Wed Sep 8 17:22:06 2004 +++ phpdoc-es/reference/array/functions/array-values.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.9 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.10 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.array-values"> <refnamediv> @@ -28,9 +28,7 @@ ?> ]]> </programlisting> - <para> - Esto resulta en: - </para> + &example.outputs; <screen role="php"> <![CDATA[ Array http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/array-walk.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/array/functions/array-walk.xml diff -u phpdoc-es/reference/array/functions/array-walk.xml:1.3 phpdoc-es/reference/array/functions/array-walk.xml:1.4 --- phpdoc-es/reference/array/functions/array-walk.xml:1.3 Wed Sep 8 17:22:06 2004 +++ phpdoc-es/reference/array/functions/array-walk.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.21 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.22 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.array-walk"> <refnamediv> @@ -93,9 +93,7 @@ ?> ]]> </programlisting> - <para> - La salida ser&aacute;: - </para> + &example.outputs; <screen role="php"> <![CDATA[ Antes...: http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/array.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/array/functions/array.xml diff -u phpdoc-es/reference/array/functions/array.xml:1.2 phpdoc-es/reference/array/functions/array.xml:1.3 --- phpdoc-es/reference/array/functions/array.xml:1.2 Mon Aug 23 12:52:57 2004 +++ phpdoc-es/reference/array/functions/array.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.12 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.13 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.array"> <refnamediv> @@ -72,9 +72,7 @@ ?> ]]> </programlisting> - <para> - Desplegar&aacute;: - </para> + &example.outputs; <screen role="php"> <![CDATA[ Array @@ -109,9 +107,7 @@ ?> ]]> </programlisting> - <para> - Desplegar&aacute;: - </para> + &example.outputs; <screen> <![CDATA[ Array http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/arsort.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/array/functions/arsort.xml diff -u phpdoc-es/reference/array/functions/arsort.xml:1.2 phpdoc-es/reference/array/functions/arsort.xml:1.3 --- phpdoc-es/reference/array/functions/arsort.xml:1.2 Wed Sep 8 17:22:06 2004 +++ phpdoc-es/reference/array/functions/arsort.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.9 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.10 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.2 --> <refentry id="function.arsort"> <refnamediv> @@ -39,9 +39,7 @@ ?> ]]> </programlisting> - <para> - Este ejemplo mostrar&iacute;a: - </para> + &example.outputs; <screen> <![CDATA[ b = platano http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/asort.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/array/functions/asort.xml diff -u phpdoc-es/reference/array/functions/asort.xml:1.2 phpdoc-es/reference/array/functions/asort.xml:1.3 --- phpdoc-es/reference/array/functions/asort.xml:1.2 Wed Sep 8 17:22:06 2004 +++ phpdoc-es/reference/array/functions/asort.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.9 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.10 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.asort"> <refnamediv> @@ -38,9 +38,7 @@ ?> ]]> </programlisting> - <para> - Este ejemplo mostrar&aacute;: - </para> + &example.outputs; <screen> <![CDATA[ d = limon http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/count.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/array/functions/count.xml diff -u phpdoc-es/reference/array/functions/count.xml:1.3 phpdoc-es/reference/array/functions/count.xml:1.4 --- phpdoc-es/reference/array/functions/count.xml:1.3 Thu Sep 9 10:28:22 2004 +++ phpdoc-es/reference/array/functions/count.xml Tue Nov 9 13:59:09 2004 @@ -1,11 +1,12 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.12 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.15 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.count"> <refnamediv> <refname>count</refname> - <refpurpose>Cuenta los elementos de una variable</refpurpose> + <refpurpose>Cuenta los elementos de una matriz o propiedades de un objeto + </refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> @@ -16,13 +17,23 @@ </methodsynopsis> <para> Devuelve el n&uacute;mero de elementos en <parameter>var</parameter>, - que t&iacute;picamente es una matriz (porque cualquier otra cosa - tendr&iacute;a s&oacute;lo un elemento). + que t&iacute;picamente es una matriz, porque cualquier otra cosa diferente + de un objeto tendr&iacute;a s&oacute;lo un elemento. </para> <para> - Si <parameter>var</parameter> no es una matriz, se regresa - <literal>1</literal> (excepto: <literal>count(&null;)</literal> es igual a - <literal>0</literal>). + Para objetos <function>count</function> regresar&aacute; el n&uacute;mero + de propiedades no est&aacute;ticas, sin tomar en cuenta su visibilidad. + Si tiene instalado <link linkend="ref.spl">SPL</link>, enlazarlo a + <function>count</function> implementando la interface + <literal>Countable</literal>. La interface tiene exactamente un + m&eacute;todo, <function>count</function>, el cual regresa el mismo valor + que regresar&iacute; la funci&oacute;n <function>count</function>. + </para> + <para> + Si <parameter>var</parameter> no es una matriz o un objeto, + se regresar&aacute; <literal>1</literal>. Hay una excepci&oacute;n, + si <parameter>var</parameter> es &null;, se regresar&aacute; + <literal>0</literal>. </para> <note> <simpara> @@ -48,14 +59,13 @@ </caution> <para> Por favor vea la secci&oacute;n del manual sobre - <link linkend="language.types.array">Arrays</link> para una explicaci&oacute;n + <link linkend="language.types.array">Array</link> para una explicaci&oacute;n m&aacute;s detallada de como son usadas e implementadas las matrices en PHP. </para> <para> <example> <title>Ejemplo</title> <programlisting role="php"> - <!-- TODO: examples about count(null), count(false), count(object).. --> <![CDATA[ <?php $a[0] = 1; @@ -69,6 +79,18 @@ $b[10] = 11; $result = count($b); // $result == 3; + +$result = count(null); +// $result == 0; +$result = count(false); +// $result == 1; + +$obj = new StdClass; +$obj->foo = 'A property'; +$obj->bar = 'Another property'; +$result = count($obj); +// $result == 2; + ?> ]]> </programlisting> @@ -94,12 +116,6 @@ </programlisting> </example> </para> - <note> - <para> - La funci&oacute;n <function>sizeof</function> es un - <link linkend="aliases">alias</link> para <function>count</function>. - </para> - </note> <para> Vea tambi&eacute;n <function>is_array</function>, <function>isset</function>, and http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/each.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/array/functions/each.xml diff -u phpdoc-es/reference/array/functions/each.xml:1.2 phpdoc-es/reference/array/functions/each.xml:1.3 --- phpdoc-es/reference/array/functions/each.xml:1.2 Wed Sep 8 17:22:06 2004 +++ phpdoc-es/reference/array/functions/each.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.15 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.16 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.each"> <refnamediv> @@ -105,9 +105,7 @@ ?> ]]> </programlisting> - <para> - Tiene la salida: - </para> + &example.outputs; <screen> <![CDATA[ a => apple http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/extract.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/array/functions/extract.xml diff -u phpdoc-es/reference/array/functions/extract.xml:1.3 phpdoc-es/reference/array/functions/extract.xml:1.4 --- phpdoc-es/reference/array/functions/extract.xml:1.3 Sat Sep 18 04:45:40 2004 +++ phpdoc-es/reference/array/functions/extract.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.17 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.18 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.extract"> <refnamediv> @@ -186,9 +186,7 @@ ?> ]]> </programlisting> - <para> - The above example will produce: - </para> + &example.outputs; <screen> <![CDATA[ azul, grande, esfera, media http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/in-array.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/array/functions/in-array.xml diff -u phpdoc-es/reference/array/functions/in-array.xml:1.2 phpdoc-es/reference/array/functions/in-array.xml:1.3 --- phpdoc-es/reference/array/functions/in-array.xml:1.2 Tue Sep 14 17:15:38 2004 +++ phpdoc-es/reference/array/functions/in-array.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.11 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.12 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.in-array"> <refnamediv> @@ -81,9 +81,7 @@ ?> ]]> </programlisting> - <para> - Desplegar&aacute;: - </para> + &example.outputs; <screen> <![CDATA[ 1.13 Encontrado con chequeo STRICT @@ -113,9 +111,7 @@ ?> ]]> </programlisting> - <para> - Despliega: - </para> + &example.outputs; <screen> <![CDATA[ Se encontro 'ph' http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/krsort.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/array/functions/krsort.xml diff -u phpdoc-es/reference/array/functions/krsort.xml:1.2 phpdoc-es/reference/array/functions/krsort.xml:1.3 --- phpdoc-es/reference/array/functions/krsort.xml:1.2 Tue Sep 14 17:15:38 2004 +++ phpdoc-es/reference/array/functions/krsort.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.9 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.10 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.krsort"> <refnamediv> @@ -36,9 +36,7 @@ ?> ]]> </programlisting> - <para> - Este ejemplo desplegar&aacute;: - </para> + &example.outputs; <screen> <![CDATA[ d = lemon http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/ksort.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/array/functions/ksort.xml diff -u phpdoc-es/reference/array/functions/ksort.xml:1.2 phpdoc-es/reference/array/functions/ksort.xml:1.3 --- phpdoc-es/reference/array/functions/ksort.xml:1.2 Tue Sep 14 17:15:38 2004 +++ phpdoc-es/reference/array/functions/ksort.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.9 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.10 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.ksort"> <refnamediv> @@ -36,9 +36,7 @@ ?> ]]> </programlisting> - <para> - This example would display: - </para> + &example.outputs; <screen> <![CDATA[ a = orange http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/reset.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/array/functions/reset.xml diff -u phpdoc-es/reference/array/functions/reset.xml:1.2 phpdoc-es/reference/array/functions/reset.xml:1.3 --- phpdoc-es/reference/array/functions/reset.xml:1.2 Tue Sep 14 17:15:38 2004 +++ phpdoc-es/reference/array/functions/reset.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.11 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.12 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.reset"> <refnamediv> @@ -18,7 +18,7 @@ <para> <function>reset</function> rebobina el puntero interno de la <parameter>matriz</parameter> a su primer elemento. Y regresa el valor - de ese elemento. + de ese elemento, o &false; si la matriz est&aacute; vac&iacute;a. </para> <para> <example> http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/rsort.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/array/functions/rsort.xml diff -u phpdoc-es/reference/array/functions/rsort.xml:1.2 phpdoc-es/reference/array/functions/rsort.xml:1.3 --- phpdoc-es/reference/array/functions/rsort.xml:1.2 Tue Sep 14 17:15:38 2004 +++ phpdoc-es/reference/array/functions/rsort.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.9 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.10 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.rsort"> <refnamediv> @@ -35,9 +35,7 @@ ?> ]]> </programlisting> - <para> - Este ejemplo desplegar&aacute;: - </para> + &example.outputs; <screen> <![CDATA[ 0 = orange http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/sort.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-es/reference/array/functions/sort.xml diff -u phpdoc-es/reference/array/functions/sort.xml:1.4 phpdoc-es/reference/array/functions/sort.xml:1.5 --- phpdoc-es/reference/array/functions/sort.xml:1.4 Sat Sep 18 04:45:40 2004 +++ phpdoc-es/reference/array/functions/sort.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.15 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.16 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.sort"> <refnamediv> @@ -45,9 +45,7 @@ ?> ]]> </programlisting> - <para> - Este ejemplo desplegar&aacute;: - </para> + &example.outputs; <screen> <![CDATA[ fruits[0] = apple http://cvs.php.net/diff.php/phpdoc-es/reference/array/functions/uksort.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/array/functions/uksort.xml diff -u phpdoc-es/reference/array/functions/uksort.xml:1.3 phpdoc-es/reference/array/functions/uksort.xml:1.4 --- phpdoc-es/reference/array/functions/uksort.xml:1.3 Sat Sep 18 04:45:40 2004 +++ phpdoc-es/reference/array/functions/uksort.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.13 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.14 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/array.xml, last change in rev 1.1 --> <refentry id="function.uksort"> <refnamediv> @@ -57,9 +57,7 @@ ?> ]]> </programlisting> - <para> - Este ejemplo desplegar&aacute;: - </para> + &example.outputs; <screen> <![CDATA[ 20: twenty http://cvs.php.net/diff.php/phpdoc-es/reference/bzip2/functions/bzcompress.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/bzip2/functions/bzcompress.xml diff -u phpdoc-es/reference/bzip2/functions/bzcompress.xml:1.2 phpdoc-es/reference/bzip2/functions/bzcompress.xml:1.3 --- phpdoc-es/reference/bzip2/functions/bzcompress.xml:1.2 Sun Jun 20 02:49:04 2004 +++ phpdoc-es/reference/bzip2/functions/bzcompress.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.6 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: baoengb Status: ready --> <!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 --> <refentry id="function.bzcompress"> <refnamediv> @@ -42,7 +42,7 @@ </para> </refsect1> <refsect1> - <title>Ejemplo</title> + &reftitle.examples; <example> <title>Comprimiendo datos</title> <programlisting role="php"> http://cvs.php.net/diff.php/phpdoc-es/reference/bzip2/functions/bzdecompress.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/bzip2/functions/bzdecompress.xml diff -u phpdoc-es/reference/bzip2/functions/bzdecompress.xml:1.1 phpdoc-es/reference/bzip2/functions/bzdecompress.xml:1.2 --- phpdoc-es/reference/bzip2/functions/bzdecompress.xml:1.1 Fri Jun 18 12:50:07 2004 +++ phpdoc-es/reference/bzip2/functions/bzdecompress.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.7 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: baoengb Status: ready --> <!-- splitted from ./en/functions/bzip2.xml, last change in rev 1.1 --> <refentry id="function.bzdecompress"> <refnamediv> @@ -32,7 +32,7 @@ </para> </refsect1> <refsect1> - <title>Ejemplo</title> + &reftitle.examples; <example> <title>Descomprimir una cadena</title> <programlisting role="php"> http://cvs.php.net/diff.php/phpdoc-es/reference/mysql/functions/mysql-affected-rows.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/mysql/functions/mysql-affected-rows.xml diff -u phpdoc-es/reference/mysql/functions/mysql-affected-rows.xml:1.2 phpdoc-es/reference/mysql/functions/mysql-affected-rows.xml:1.3 --- phpdoc-es/reference/mysql/functions/mysql-affected-rows.xml:1.2 Thu Jul 15 18:02:24 2004 +++ phpdoc-es/reference/mysql/functions/mysql-affected-rows.xml Tue Nov 9 13:59:09 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.17 Maintainer: baoengb Status: ready --> <!-- splitted from ./es/functions/mysql.xml, last change in rev 1.1 --> -<!-- last change to 'mysql-affected-rows' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.15 Maintainer: baoengb Status: ready --> <refentry id="function.mysql-affected-rows"> <refnamediv> <refname>mysql_affected_rows</refname> @@ -44,12 +44,16 @@ de filas encontradas, solo el n&uacute;mero de filas que fueron literalmente afectadas por la sentencia. </para> + <para> + La sentencia REPLACE primero borra el registro con la misma llave + principal y entonces inserta el nuevo registro. Esta funci&oacute;n + regresa el n&uacute;mero de registros borrados m&aacute;s el n&uacute;mero + de registros insertados. + </para> </note> <para> - Este comando no es efectivo para las sentencias SELECT, sino s&oacute;lo - para las sentencias que modifican registros. Para conseguir el - n&uacute;mero de lineas devueltos por un SELECT, usar - <function>mysql_num_rows</function>. + Para obtener el n&uacute;mero de fils regresadas por un SELECT, es + posible usar tambi&eacute;n <function>mysql_num_rows</function>. </para> <para> Si la &uacute;ltima consulta fall&oacute;, esta funci&oacute;n regresar&aacute; -1. http://cvs.php.net/diff.php/phpdoc-es/reference/mysqli/functions/mysqli-multi-query.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/mysqli/functions/mysqli-multi-query.xml diff -u phpdoc-es/reference/mysqli/functions/mysqli-multi-query.xml:1.2 phpdoc-es/reference/mysqli/functions/mysqli-multi-query.xml:1.3 --- phpdoc-es/reference/mysqli/functions/mysqli-multi-query.xml:1.2 Wed Nov 3 12:44:10 2004 +++ phpdoc-es/reference/mysqli/functions/mysqli-multi-query.xml Tue Nov 9 13:59:09 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: baoengb Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: baoengb Status: ready --> <refentry id="function.mysqli-multi-query"> <refnamediv> <refname>mysqli_multi_query</refname> @@ -38,7 +38,9 @@ <refsect1> &reftitle.returnvalues; <para> - &return.success; + <function>mysqli_multi_query</function> solo regresa &false; si falla la + primera sentencia. Para obtener los errores subsecuentes de las + otras sentencias tiene que llamar primero <function>mysqli_next_result</function>. </para> </refsect1> <refsect1>
« previous php.doc.es (#716) next »