svn: /phpdoc/es/trunk/reference/ simplexml/simplexmlelement/count.xml strings/functions/number-format.xml

From: Date: Fri, 10 Dec 2010 00:29:25 +0000
Subject: svn: /phpdoc/es/trunk/reference/ simplexml/simplexmlelement/count.xml strings/functions/number-format.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-3916@lists.php.net to get a copy of this message
x1v4nx Fri, 10 Dec 2010 00:29:25 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=306147 Log: Files updated to the lastest english version Changed paths: U phpdoc/es/trunk/reference/simplexml/simplexmlelement/count.xml U phpdoc/es/trunk/reference/strings/functions/number-format.xml Modified: phpdoc/es/trunk/reference/simplexml/simplexmlelement/count.xml =================================================================== --- phpdoc/es/trunk/reference/simplexml/simplexmlelement/count.xml 2010-12-10 00:23:59 UTC (rev 306146) +++ phpdoc/es/trunk/reference/simplexml/simplexmlelement/count.xml 2010-12-10 00:29:25 UTC (rev 306147) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 295805 Maintainer: yago Status: ready --> +<!-- EN-Revision: 305704 Maintainer: yago Status: ready --> <refentry xml:id="simplexmlelement.count" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> @@ -11,7 +11,7 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <type>entero</type><methodname>SimpleXMLElement::count</methodname> + <modifier>public</modifier> <type>integer</type><methodname>SimpleXMLElement::count</methodname> <void /> </methodsynopsis> <para> @@ -100,4 +100,3 @@ vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> - Modified: phpdoc/es/trunk/reference/strings/functions/number-format.xml =================================================================== --- phpdoc/es/trunk/reference/strings/functions/number-format.xml 2010-12-10 00:23:59 UTC (rev 306146) +++ phpdoc/es/trunk/reference/strings/functions/number-format.xml 2010-12-10 00:29:25 UTC (rev 306147) @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> <!-- EN-Revision: 288721 Maintainer: yago Status: ready --> + <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.number-format" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>number_format</refname> @@ -12,14 +13,14 @@ <methodsynopsis> <type>string</type><methodname>number_format</methodname> <methodparam><type>float</type><parameter>number</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>decimals</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>decimals</parameter><initializer>0</initializer></methodparam> </methodsynopsis> <methodsynopsis> <type>string</type><methodname>number_format</methodname> <methodparam><type>float</type><parameter>number</parameter></methodparam> - <methodparam><type>int</type><parameter>decimals</parameter></methodparam> - <methodparam><type>string</type><parameter>dec_point</parameter></methodparam> - <methodparam><type>string</type><parameter>thousands_sep</parameter></methodparam> + <methodparam><type>int</type><parameter>decimals</parameter><initializer>0</initializer></methodparam> + <methodparam><type>string</type><parameter>dec_point</parameter><initializer>'.'</initializer></methodparam> + <methodparam><type>string</type><parameter>thousands_sep</parameter><initializer>','</initializer></methodparam> </methodsynopsis> <para> Esta función acepta uno, dos, o cuatro parámetros (no tres): @@ -76,6 +77,12 @@ <para> Establece el separador para los decimales. </para> + <para> + Esta función sólo toma el primer byte para el + separador. Esto significa que caracteres multibyte + <emphasis>NO</emphasis> funcionarán, resultando en una + secuencia multibyte rota. + </para> </listitem> </varlistentry> <varlistentry> @@ -85,12 +92,17 @@ Establece el separador para los miles. </para> <para> - Sólo se utilizará el primer carácter de <parameter>thousands_sep</parameter>. - Por ejemplo, si utilizamos la cadena '<literal>bar</literal>' como + Sólo se utilizará el primer byte de <parameter>thousands_sep</parameter>. + Por ejemplo, si utilizamos la cadena '<literal>&amp;amp;</literal>' como <parameter>thousands_sep</parameter> y pasamos el número - <literal>1000</literal>, a <function>number_format</function> - devolverá <literal>1b000</literal>. + <literal>1000</literal> a <function>number_format</function>, ésta + devolverá <literal>1&amp;000</literal>. </para> + <para> + Como se señaló anteriormente en la descripción del parámetro <parameter>dec_point</parameter>, + debido a que esta función no es multibyte, utilizar caracteres multibyte + como separadores resultará en secuencias rotas. + </para> </listitem> </varlistentry> </variablelist>

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