cvs: phpdoc-es /chapters config.xml /features file-upload.xml /reference/array/functions array-combine.xml array-map.xml array-merge-recursive.xml
array-multisort.xml array-rand.xml array-unique.xml natsort.xml
| From: | Leonardo Boshell | Date: | Fri, 22 Aug 2003 10:45:40 +0000 |
| Subject: | cvs: phpdoc-es /chapters config.xml /features file-upload.xml /reference/array/functions array-combine.xml array-map.xml array-merge-recursive.xml array-multisort.xml array-rand.xml array-unique.xml natsort.xml |
||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-324@lists.php.net to get a copy of this message | ||
lboshell Fri Aug 22 06:45:40 2003 EDT
Modified files:
/phpdoc-es/chapters config.xml
/phpdoc-es/features file-upload.xml
/phpdoc-es/reference/array/functions array-combine.xml
array-map.xml
array-merge-recursive.xml
array-multisort.xml
array-rand.xml
array-unique.xml natsort.xml
Log:
Actualizar algunos archivos bajo reference/array/functions/ a últimas
versiones (arreglos de estilo para mayor coherencia con el estándar de
PEAR)
Corrección de pequeños fallos ortográficos
Index: phpdoc-es/chapters/config.xml diff -u phpdoc-es/chapters/config.xml:1.17 phpdoc-es/chapters/config.xml:1.18 --- phpdoc-es/chapters/config.xml:1.17 Tue Jun 24 22:09:36 2003 +++ phpdoc-es/chapters/config.xml Fri Aug 22 06:45:38 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> +<!-- $Revision: 1.18 $ --> <!-- EN-Revision: 1.109 Maintainer: rafael Status: ready --> <chapter id="configuration"> @@ -1025,7 +1025,7 @@ Especifica una lista de directorios en donde las funciones <function>require</function>, <function>include</function> y <function>fopen_with_path</function> tratan de encontrar - ficheros. El formto es igual al utilizado en la variable de + ficheros. El formato es igual al utilizado en la variable de entorno <envar>PATH</envar>: una lista de directorios separados con dos puntos (:) en UNIX y punto y coma (;) en Windows. Index: phpdoc-es/features/file-upload.xml diff -u phpdoc-es/features/file-upload.xml:1.7 phpdoc-es/features/file-upload.xml:1.8 --- phpdoc-es/features/file-upload.xml:1.7 Tue Jun 24 22:09:37 2003 +++ phpdoc-es/features/file-upload.xml Fri Aug 22 06:45:39 2003 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- EN-Revision: 1.38 Maintainer: pablof Status: ready --> <chapter id="features.file-upload"> - <title>Manejo de envío de ficheros</title> + <title>Manejo de envío de archivos</title> <sect1 id="features.file-upload.post-method"> <title>Envío de archivos con el método POST</title> Index: phpdoc-es/reference/array/functions/array-combine.xml diff -u phpdoc-es/reference/array/functions/array-combine.xml:1.2 phpdoc-es/reference/array/functions/array-combine.xml:1.3 --- phpdoc-es/reference/array/functions/array-combine.xml:1.2 Fri Aug 15 00:48:41 2003 +++ phpdoc-es/reference/array/functions/array-combine.xml Fri Aug 22 06:45:40 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <refentry id="function.array-combine"> <refnamediv> <refname>array_combine</refname> @@ -31,8 +31,8 @@ <programlisting role="php"> <![CDATA[ <?php -$a = array('verde','rojo','amarillo'); -$b = array('aguacate','manzana','banano'); +$a = array('verde', 'rojo', 'amarillo'); +$b = array('aguacate', 'manzana', 'banano'); $c = array_combine($a, $b); print_r($c); Index: phpdoc-es/reference/array/functions/array-map.xml diff -u phpdoc-es/reference/array/functions/array-map.xml:1.1 phpdoc-es/reference/array/functions/array-map.xml:1.2 --- phpdoc-es/reference/array/functions/array-map.xml:1.1 Fri Aug 15 00:48:41 2003 +++ phpdoc-es/reference/array/functions/array-map.xml Fri Aug 22 06:45:40 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.62 --> <refentry id="function.array-map"> <refnamediv> @@ -35,7 +35,7 @@ <![CDATA[ <?php function cubo($n) { - return $n*$n*$n; + return($n * $n * $n); } $a = array(1, 2, 3, 4, 5); @@ -68,11 +68,11 @@ <![CDATA[ <?php function mostrar_Castellano($n, $m) { - return "El número $n es llamado $m en Castellano"; + return("El número $n es llamado $m en Castellano"); } function map_Castellano($n, $m) { - return array ($n => $m); + return(array($n => $m)); } $a = array(1, 2, 3, 4, 5); Index: phpdoc-es/reference/array/functions/array-merge-recursive.xml diff -u phpdoc-es/reference/array/functions/array-merge-recursive.xml:1.1 phpdoc-es/reference/array/functions/array-merge-recursive.xml:1.2 --- phpdoc-es/reference/array/functions/array-merge-recursive.xml:1.1 Fri Aug 15 00:48:41 2003 +++ phpdoc-es/reference/array/functions/array-merge-recursive.xml Fri Aug 22 06:45:40 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.12 --> <refentry id="function.array-merge-recursive"> <refnamediv> @@ -37,9 +37,9 @@ <programlisting role="php"> <![CDATA[ <?php -$m1 = array ("color" => array ("favorito" => "rojo"), 5); -$m2 = array (10, "color" => array ("favorito" => "verde", "azul")); -$resultado = array_merge_recursive ($m1, $m2); +$m1 = array("color" => array("favorito" => "rojo"), 5); +$m2 = array(10, "color" => array("favorito" => "verde", "azul")); +$resultado = array_merge_recursive($m1, $m2); ?> ]]> </programlisting> Index: phpdoc-es/reference/array/functions/array-multisort.xml diff -u phpdoc-es/reference/array/functions/array-multisort.xml:1.1 phpdoc-es/reference/array/functions/array-multisort.xml:1.2 --- phpdoc-es/reference/array/functions/array-multisort.xml:1.1 Fri Aug 15 00:48:41 2003 +++ phpdoc-es/reference/array/functions/array-multisort.xml Fri Aug 22 06:45:40 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.11 --> <refentry id="function.array-multisort"> <refnamediv> @@ -77,9 +77,9 @@ <programlisting role="php"> <![CDATA[ <?php -$matriz1 = array ("10", 100, 100, "a"); -$matriz2 = array (1, 3, "2", 1); -array_multisort ($matriz1, $matriz2); +$matriz1 = array("10", 100, 100, "a"); +$matriz2 = array(1, 3, "2", 1); +array_multisort($matriz1, $matriz2); ?> ]]> </programlisting> @@ -98,9 +98,9 @@ <programlisting role="php"> <![CDATA[ <?php -$matriz = array (array ("10", 100, 100, "a"), array (1, 3, "2", 1)); -array_multisort ($matriz[0], SORT_ASC, SORT_STRING, - $matriz[1], SORT_NUMERIC, SORT_DESC); +$matriz = array(array("10", 100, 100, "a"), array(1, 3, "2", 1)); +array_multisort($matriz[0], SORT_ASC, SORT_STRING, + $matriz[1], SORT_NUMERIC, SORT_DESC); ?> ]]> </programlisting> Index: phpdoc-es/reference/array/functions/array-rand.xml diff -u phpdoc-es/reference/array/functions/array-rand.xml:1.1 phpdoc-es/reference/array/functions/array-rand.xml:1.2 --- phpdoc-es/reference/array/functions/array-rand.xml:1.1 Fri Aug 15 00:48:41 2003 +++ phpdoc-es/reference/array/functions/array-rand.xml Fri Aug 22 06:45:40 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.13 --> <refentry id="function.array-rand"> <refnamediv> @@ -40,11 +40,11 @@ <programlisting role="php"> <![CDATA[ <?php -srand ((float) microtime() * 10000000); -$entrada = array ("Neo", "Morpheus", "Trinity", "Cypher", "Tank"); -$claves_aleatorias = array_rand ($entrada, 2); -print $entrada[$claves_aleatorias[0]]."\n"; -print $entrada[$claves_aleatorias[1]]."\n"; +srand((float) microtime() * 10000000); +$entrada = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank"); +$claves_aleatorias = array_rand($entrada, 2); +print $entrada[$claves_aleatorias[0]] . "\n"; +print $entrada[$claves_aleatorias[1]] . "\n"; ?> ]]> </programlisting> Index: phpdoc-es/reference/array/functions/array-unique.xml diff -u phpdoc-es/reference/array/functions/array-unique.xml:1.1 phpdoc-es/reference/array/functions/array-unique.xml:1.2 --- phpdoc-es/reference/array/functions/array-unique.xml:1.1 Fri Aug 15 00:48:41 2003 +++ phpdoc-es/reference/array/functions/array-unique.xml Fri Aug 22 06:45:40 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.array-unique"> <refnamediv> @@ -44,8 +44,8 @@ <programlisting role="php"> <![CDATA[ <?php -$entrada = array ("a" => "verde", "rojo", "b" => "verde", "azul", "rojo"); -$resultado = array_unique ($entrada); +$entrada = array("a" => "verde", "rojo", "b" => "verde", "azul", "rojo"); +$resultado = array_unique($entrada); print_r($resultado); ?> ]]> @@ -71,8 +71,8 @@ <programlisting role="php"> <![CDATA[ <?php -$entrada = array (4,"4","3",4,3,"3"); -$resultado = array_unique ($entrada); +$entrada = array(4,"4","3",4,3,"3"); +$resultado = array_unique($entrada); var_dump($resultado); ?> ]]> Index: phpdoc-es/reference/array/functions/natsort.xml diff -u phpdoc-es/reference/array/functions/natsort.xml:1.1 phpdoc-es/reference/array/functions/natsort.xml:1.2 --- phpdoc-es/reference/array/functions/natsort.xml:1.1 Fri Aug 15 00:48:41 2003 +++ phpdoc-es/reference/array/functions/natsort.xml Fri Aug 22 06:45:40 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.25 --> <refentry id="function.natsort"> <refnamediv> @@ -29,7 +29,7 @@ <programlisting role="php"> <![CDATA[ <?php -$matriz1 = $matriz2 = array ("img12.png", "img10.png", "img2.png", "img1.png"); +$matriz1 = $matriz2 = array("img12.png", "img10.png", "img2.png", "img1.png"); sort($matriz1); echo "Ordenamiento estándar\n";
Index: phpdoc-es/chapters/config.xml diff -u phpdoc-es/chapters/config.xml:1.17 phpdoc-es/chapters/config.xml:1.18 --- phpdoc-es/chapters/config.xml:1.17 Tue Jun 24 22:09:36 2003 +++ phpdoc-es/chapters/config.xml Fri Aug 22 06:45:38 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> +<!-- $Revision: 1.18 $ --> <!-- EN-Revision: 1.109 Maintainer: rafael Status: ready --> <chapter id="configuration"> @@ -1025,7 +1025,7 @@ Especifica una lista de directorios en donde las funciones <function>require</function>, <function>include</function> y <function>fopen_with_path</function> tratan de encontrar - ficheros. El formto es igual al utilizado en la variable de + ficheros. El formato es igual al utilizado en la variable de entorno <envar>PATH</envar>: una lista de directorios separados con dos puntos (:) en UNIX y punto y coma (;) en Windows. Index: phpdoc-es/features/file-upload.xml diff -u phpdoc-es/features/file-upload.xml:1.7 phpdoc-es/features/file-upload.xml:1.8 --- phpdoc-es/features/file-upload.xml:1.7 Tue Jun 24 22:09:37 2003 +++ phpdoc-es/features/file-upload.xml Fri Aug 22 06:45:39 2003 @@ -1,9 +1,9 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- EN-Revision: 1.38 Maintainer: pablof Status: ready --> <chapter id="features.file-upload"> - <title>Manejo de envío de ficheros</title> + <title>Manejo de envío de archivos</title> <sect1 id="features.file-upload.post-method"> <title>Envío de archivos con el método POST</title> Index: phpdoc-es/reference/array/functions/array-combine.xml diff -u phpdoc-es/reference/array/functions/array-combine.xml:1.2 phpdoc-es/reference/array/functions/array-combine.xml:1.3 --- phpdoc-es/reference/array/functions/array-combine.xml:1.2 Fri Aug 15 00:48:41 2003 +++ phpdoc-es/reference/array/functions/array-combine.xml Fri Aug 22 06:45:40 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <refentry id="function.array-combine"> <refnamediv> <refname>array_combine</refname> @@ -31,8 +31,8 @@ <programlisting role="php"> <![CDATA[ <?php -$a = array('verde','rojo','amarillo'); -$b = array('aguacate','manzana','banano'); +$a = array('verde', 'rojo', 'amarillo'); +$b = array('aguacate', 'manzana', 'banano'); $c = array_combine($a, $b); print_r($c); Index: phpdoc-es/reference/array/functions/array-map.xml diff -u phpdoc-es/reference/array/functions/array-map.xml:1.1 phpdoc-es/reference/array/functions/array-map.xml:1.2 --- phpdoc-es/reference/array/functions/array-map.xml:1.1 Fri Aug 15 00:48:41 2003 +++ phpdoc-es/reference/array/functions/array-map.xml Fri Aug 22 06:45:40 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.9 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.10 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.62 --> <refentry id="function.array-map"> <refnamediv> @@ -35,7 +35,7 @@ <![CDATA[ <?php function cubo($n) { - return $n*$n*$n; + return($n * $n * $n); } $a = array(1, 2, 3, 4, 5); @@ -68,11 +68,11 @@ <![CDATA[ <?php function mostrar_Castellano($n, $m) { - return "El número $n es llamado $m en Castellano"; + return("El número $n es llamado $m en Castellano"); } function map_Castellano($n, $m) { - return array ($n => $m); + return(array($n => $m)); } $a = array(1, 2, 3, 4, 5); Index: phpdoc-es/reference/array/functions/array-merge-recursive.xml diff -u phpdoc-es/reference/array/functions/array-merge-recursive.xml:1.1 phpdoc-es/reference/array/functions/array-merge-recursive.xml:1.2 --- phpdoc-es/reference/array/functions/array-merge-recursive.xml:1.1 Fri Aug 15 00:48:41 2003 +++ phpdoc-es/reference/array/functions/array-merge-recursive.xml Fri Aug 22 06:45:40 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.12 --> <refentry id="function.array-merge-recursive"> <refnamediv> @@ -37,9 +37,9 @@ <programlisting role="php"> <![CDATA[ <?php -$m1 = array ("color" => array ("favorito" => "rojo"), 5); -$m2 = array (10, "color" => array ("favorito" => "verde", "azul")); -$resultado = array_merge_recursive ($m1, $m2); +$m1 = array("color" => array("favorito" => "rojo"), 5); +$m2 = array(10, "color" => array("favorito" => "verde", "azul")); +$resultado = array_merge_recursive($m1, $m2); ?> ]]> </programlisting> Index: phpdoc-es/reference/array/functions/array-multisort.xml diff -u phpdoc-es/reference/array/functions/array-multisort.xml:1.1 phpdoc-es/reference/array/functions/array-multisort.xml:1.2 --- phpdoc-es/reference/array/functions/array-multisort.xml:1.1 Fri Aug 15 00:48:41 2003 +++ phpdoc-es/reference/array/functions/array-multisort.xml Fri Aug 22 06:45:40 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.11 --> <refentry id="function.array-multisort"> <refnamediv> @@ -77,9 +77,9 @@ <programlisting role="php"> <![CDATA[ <?php -$matriz1 = array ("10", 100, 100, "a"); -$matriz2 = array (1, 3, "2", 1); -array_multisort ($matriz1, $matriz2); +$matriz1 = array("10", 100, 100, "a"); +$matriz2 = array(1, 3, "2", 1); +array_multisort($matriz1, $matriz2); ?> ]]> </programlisting> @@ -98,9 +98,9 @@ <programlisting role="php"> <![CDATA[ <?php -$matriz = array (array ("10", 100, 100, "a"), array (1, 3, "2", 1)); -array_multisort ($matriz[0], SORT_ASC, SORT_STRING, - $matriz[1], SORT_NUMERIC, SORT_DESC); +$matriz = array(array("10", 100, 100, "a"), array(1, 3, "2", 1)); +array_multisort($matriz[0], SORT_ASC, SORT_STRING, + $matriz[1], SORT_NUMERIC, SORT_DESC); ?> ]]> </programlisting> Index: phpdoc-es/reference/array/functions/array-rand.xml diff -u phpdoc-es/reference/array/functions/array-rand.xml:1.1 phpdoc-es/reference/array/functions/array-rand.xml:1.2 --- phpdoc-es/reference/array/functions/array-rand.xml:1.1 Fri Aug 15 00:48:41 2003 +++ phpdoc-es/reference/array/functions/array-rand.xml Fri Aug 22 06:45:40 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.13 --> <refentry id="function.array-rand"> <refnamediv> @@ -40,11 +40,11 @@ <programlisting role="php"> <![CDATA[ <?php -srand ((float) microtime() * 10000000); -$entrada = array ("Neo", "Morpheus", "Trinity", "Cypher", "Tank"); -$claves_aleatorias = array_rand ($entrada, 2); -print $entrada[$claves_aleatorias[0]]."\n"; -print $entrada[$claves_aleatorias[1]]."\n"; +srand((float) microtime() * 10000000); +$entrada = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank"); +$claves_aleatorias = array_rand($entrada, 2); +print $entrada[$claves_aleatorias[0]] . "\n"; +print $entrada[$claves_aleatorias[1]] . "\n"; ?> ]]> </programlisting> Index: phpdoc-es/reference/array/functions/array-unique.xml diff -u phpdoc-es/reference/array/functions/array-unique.xml:1.1 phpdoc-es/reference/array/functions/array-unique.xml:1.2 --- phpdoc-es/reference/array/functions/array-unique.xml:1.1 Fri Aug 15 00:48:41 2003 +++ phpdoc-es/reference/array/functions/array-unique.xml Fri Aug 22 06:45:40 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.11 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.12 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.2 --> <refentry id="function.array-unique"> <refnamediv> @@ -44,8 +44,8 @@ <programlisting role="php"> <![CDATA[ <?php -$entrada = array ("a" => "verde", "rojo", "b" => "verde", "azul", "rojo"); -$resultado = array_unique ($entrada); +$entrada = array("a" => "verde", "rojo", "b" => "verde", "azul", "rojo"); +$resultado = array_unique($entrada); print_r($resultado); ?> ]]> @@ -71,8 +71,8 @@ <programlisting role="php"> <![CDATA[ <?php -$entrada = array (4,"4","3",4,3,"3"); -$resultado = array_unique ($entrada); +$entrada = array(4,"4","3",4,3,"3"); +$resultado = array_unique($entrada); var_dump($resultado); ?> ]]> Index: phpdoc-es/reference/array/functions/natsort.xml diff -u phpdoc-es/reference/array/functions/natsort.xml:1.1 phpdoc-es/reference/array/functions/natsort.xml:1.2 --- phpdoc-es/reference/array/functions/natsort.xml:1.1 Fri Aug 15 00:48:41 2003 +++ phpdoc-es/reference/array/functions/natsort.xml Fri Aug 22 06:45:40 2003 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.7 Maintainer: lboshell Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/array.xml, last change in rev 1.25 --> <refentry id="function.natsort"> <refnamediv> @@ -29,7 +29,7 @@ <programlisting role="php"> <![CDATA[ <?php -$matriz1 = $matriz2 = array ("img12.png", "img10.png", "img2.png", "img1.png"); +$matriz1 = $matriz2 = array("img12.png", "img10.png", "img2.png", "img1.png"); sort($matriz1); echo "Ordenamiento estándar\n";