cvs: phpdoc-fr /reference/strings/functions echo.xml nl-langinfo.xml print.xml

From: Date: Fri, 23 Apr 2004 13:15:10 +0000
Subject: cvs: phpdoc-fr /reference/strings/functions echo.xml nl-langinfo.xml print.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-2296@lists.php.net to get a copy of this message
yannick Fri Apr 23 09:15:10 2004 EDT Modified files: /phpdoc-fr/reference/strings/functions echo.xml nl-langinfo.xml print.xml Log: synch with EN Revision

http://cvs.php.net/diff.php/phpdoc-fr/reference/strings/functions/echo.xml?r1=1.14&r2=1.15&ty=u Index: phpdoc-fr/reference/strings/functions/echo.xml diff -u phpdoc-fr/reference/strings/functions/echo.xml:1.14 phpdoc-fr/reference/strings/functions/echo.xml:1.15 --- phpdoc-fr/reference/strings/functions/echo.xml:1.14 Wed Feb 25 07:40:56 2004 +++ phpdoc-fr/reference/strings/functions/echo.xml Fri Apr 23 09:15:10 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> +<!-- $Revision: 1.15 $ --> +<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> <refentry id="function.echo"> <refnamediv> <refname>echo</refname> @@ -60,6 +59,10 @@ echo $foo; // foobar echo $foo,$bar; // foobarbarbaz +// Des personnes préfères passés plusieurs paramètres en utilisant la concaténation +echo 'Cette ', 'chaîne ', 'a été ', 'faite ', 'avec plusieurs paramètres.', chr(10); +echo 'Cete ' . 'chaîne ' . 'a été ' . 'faite ' . 'à l'aide de la concaténation.' . "\n"; + echo <<<END Cette syntaxe s'intitule le "here document" et permet d'afficher plusieurs lignes avec de http://cvs.php.net/diff.php/phpdoc-fr/reference/strings/functions/nl-langinfo.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-fr/reference/strings/functions/nl-langinfo.xml diff -u phpdoc-fr/reference/strings/functions/nl-langinfo.xml:1.2 phpdoc-fr/reference/strings/functions/nl-langinfo.xml:1.3 --- phpdoc-fr/reference/strings/functions/nl-langinfo.xml:1.2 Wed Feb 25 07:40:56 2004 +++ phpdoc-fr/reference/strings/functions/nl-langinfo.xml Fri Apr 23 09:15:10 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/strings.xml, last change in rev 1.169 --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: partial --> <refentry id="function.nl-langinfo"> <refnamediv> <refname>nl_langinfo</refname> @@ -16,7 +15,258 @@ <methodparam><type>int</type><parameter>item</parameter></methodparam> </methodsynopsis> <para> - &warn.undocumented.func; + <function>nl_langinfo</function> est utilisé pour accéder à chaque élément + de la configuration locale. Contrairement à la fonction <function>localeconv</function> qui renvoie + tous les éléments, la fonction <function>nl_langinfo</function> vous permet de sélectionner + un élément précis. + </para> + <para> + Si le paramètre <parameter>item</parameter> n'est pas valide, &false; sera retourné. + </para> + <para> + + <parameter>item</parameter> may be an integer value of the element or the + constant name of the element. The following is a list of constant names + for <parameter>item</parameter> that may be used and their description. + Some of these constants may not be defined or hold no value for certain + locales. + + Le paramètre <parameter>item</parameter> peut être un entier ou une constante + représentant l'élément. + Ci-dessous la liste des constantes ainsi que leurs descriptions a utilisé pour le paramètre + <parameter>item</parameter>. + Quelques unes de ces constantes ne sont pas définies ou ne possèdent pas de valeur pour + certaines localisations. + + <table> + <title>nl_langinfo Constantes</title> + <tgroup cols="2"> + <colspec colname="c1" /> + <colspec colname="c2" /> + <thead> + <row> + <entry>Constante</entry> + <entry>Description</entry> + </row> + </thead> + <tbody> + <row> + <entry namest="c1" nameend="c2" align="center"><emphasis>Constantes de la catégorie LC_TIME</emphasis></entry> + </row> + <row> + <entry>ABDAY_(1-7)</entry> + <entry>Abbreviated name of n-th day of the week.</entry> + </row> + <row> + <entry>DAY_(1-7)</entry> + <entry>Name of the n-th day of the week (DAY_1 = Sunday).</entry> + </row> + <row> + <entry>ABMON_(1-12)</entry> + <entry>Abbreviated name of the n-th month of the year.</entry> + </row> + <row> + <entry>MON_(1-12)</entry> + <entry>Name of the n-th month of the year.</entry> + </row> + <row> + <entry>AM_STR</entry> + <entry>Chaîne pour Ante meridian.</entry> + </row> + <row> + <entry>PM_STR</entry> + <entry>Chaîne pour Post meridian.</entry> + </row> + <row> + <entry>D_T_FMT</entry> + <entry>Chaîne pouvant être utilisée comme chaîne de formatage pour la fonction + <function>strftime</function> pour représenter la date et l'heure.</entry> + </row> + <row> + <entry>D_FMT</entry> + <entry>Chaîne pouvant être utilisée comme chaîne de formatage pour la fonction + <function>strftime</function> pour représenter la date.</entry> + </row> + <row> + <entry>T_FMT</entry> + <entry>Chaîne pouvant être utilisée comme chaîne de formatage pour la fonction + <function>strftime</function> pour représenter l'heure.</entry> + </row> + <row> + <entry>T_FMT_AMPM</entry> + <entry>String that can be used as the format string for <function>strftime</function> to represent time in 12-hour format with ante/post meridian.</entry> + </row> + <row> + <entry>ERA</entry> + <entry>Alternate era.</entry> + </row> + <row> + <entry>ERA_YEAR</entry> + <entry>Year in alternate era format.</entry> + </row> + <row> + <entry>ERA_D_T_FMT</entry> + <entry>Date and time in alternate era format (string can be used in <function>strftime</function>).</entry> + </row> + <row> + <entry>ERA_D_FMT</entry> + <entry>Date in alternate era format (string can be used in <function>strftime</function>).</entry> + </row> + <row> + <entry>ERA_T_FMT</entry> + <entry>Time in alternate era format (string can be used in <function>strftime</function>).</entry> + </row> + <row> + <entry namest="c1" nameend="c2" align="center"><emphasis>Constantes de la catégorie LC_MONETARY</emphasis></entry> + </row> + <row> + <entry>INT_CURR_SYMBOL</entry> + <entry>International currency symbol.</entry> + </row> + <row> + <entry>CURRENCY_SYMBOL</entry> + <entry>Local currency symbol.</entry> + </row> + <row> + <entry>CRNCYSTR</entry> + <entry>Same value as CURRENCY_SYMBOL.</entry> + </row> + <row> + <entry>MON_DECIMAL_POINT</entry> + <entry>Decimal point character.</entry> + </row> + <row> + <entry>MON_THOUSANDS_SEP</entry> + <entry>Thousands separator (groups of three digits).</entry> + </row> + <row> + <entry>MON_GROUPING</entry> + <entry>Like 'grouping' element.</entry> + </row> + <row> + <entry>POSITIVE_SIGN</entry> + <entry>Sign for positive values.</entry> + </row> + <row> + <entry>NEGATIVE_SIGN</entry> + <entry>Sign for negative values.</entry> + </row> + <row> + <entry>INT_FRAC_DIGITS</entry> + <entry>International fractional digits.</entry> + </row> + <row> + <entry>FRAC_DIGITS</entry> + <entry>Local fractional digits.</entry> + </row> + <row> + <entry>P_CS_PRECEDES</entry> + <entry>Returns 1 if CURRENCY_SYMBOL precedes a positive value.</entry> + </row> + <row> + <entry>P_SEP_BY_SPACE</entry> + <entry>Returns 1 if a space separates CURRENCY_SYMBOL from a positive value.</entry> + </row> + <row> + <entry>N_CS_PRECEDES</entry> + <entry>Returns 1 if CURRENCY_SYMBOL precedes a negative value.</entry> + </row> + <row> + <entry>N_SEP_BY_SPACE</entry> + <entry>Returns 1 if a space separates CURRENCY_SYMBOL from a negative value.</entry> + </row> + <row> + <entry>P_SIGN_POSN</entry> + <entry morerows="1" valign="middle"> + <itemizedlist> + <listitem> + <simpara> + Returns 0 if parentheses surround the quantity and currency_symbol. + </simpara> + </listitem> + <listitem> + <simpara> + Returns 1 if the sign string precedes the quantity and currency_symbol. + </simpara> + </listitem> + <listitem> + <simpara> + Returns 2 if the sign string follows the quantity and currency_symbol. + </simpara> + </listitem> + <listitem> + <simpara> + Returns 3 if the sign string immediately precedes the currency_symbol. + </simpara> + </listitem> + <listitem> + <simpara> + Returns 4 if the sign string immediately follows the currency_symbol. + </simpara> + </listitem> + </itemizedlist> + </entry> + </row> + <row> + <entry>N_SIGN_POSN</entry> + </row> + <row> + <entry namest="c1" nameend="c2" align="center"><emphasis>Constantes de la catégorie LC_NUMERIC</emphasis></entry> + </row> + <row> + <entry>DECIMAL_POINT</entry> + <entry>Decimal point character.</entry> + </row> + <row> + <entry>RADIXCHAR</entry> + <entry>Same value as DECIMAL_POINT.</entry> + </row> + <row> + <entry>THOUSANDS_SEP</entry> + <entry>Separator character for thousands (groups of three digits).</entry> + </row> + <row> + <entry>THOUSEP</entry> + <entry>Same value as THOUSANDS_SEP.</entry> + </row> + <row> + <entry>GROUPING</entry> + <entry></entry> + </row> + <row> + <entry namest="c1" nameend="c2" align="center"><emphasis>Constantes de la catégorie LC_MESSAGES</emphasis></entry> + </row> + <row> + <entry>YESEXPR</entry> + <entry>Regex string for matching 'yes' input.</entry> + </row> + <row> + <entry>NOEXPR</entry> + <entry>Regex string for matching 'no' input.</entry> + </row> + <row> + <entry>YESSTR</entry> + <entry>Output string for 'yes'.</entry> + </row> + <row> + <entry>NOSTR</entry> + <entry>Output string for 'no'.</entry> + </row> + <row> + <entry namest="c1" nameend="c2" align="center"><emphasis>Constantes de la catégorie LC_CTYPE</emphasis></entry> + </row> + <row> + <entry>CODESET</entry> + <entry>Return a string with the name of the character encoding.</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + &note.no-windows; + <para> + See also <function>setlocale</function> and + <function>localeconv</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/strings/functions/print.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-fr/reference/strings/functions/print.xml diff -u phpdoc-fr/reference/strings/functions/print.xml:1.10 phpdoc-fr/reference/strings/functions/print.xml:1.11 --- phpdoc-fr/reference/strings/functions/print.xml:1.10 Wed Feb 25 07:40:56 2004 +++ phpdoc-fr/reference/strings/functions/print.xml Fri Apr 23 09:15:10 2004 @@ -1,7 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> -<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> <refentry id="function.print"> <refnamediv> <refname>print</refname> @@ -55,6 +54,9 @@ // Les guillemets simples annulent le remplacement des variables print 'foo vaut $foo'; // foo vaut $foo +// Si vous n'utilisez pas d'autres caractères, vous pouvez afficher simplement vos variables comme ceci +print $foo; // foobar + print <<<END Cette syntaxe s'intitule le "here document" et permet d'afficher plusieurs lignes avec de
« previous php.doc.fr (#2296) next »