cvs: phpdoc-fr /appendices reserved.constants.core.xml /install pecl.xml /language/predefined/iterator current.xml key.xml next.xml rewind.xml
valid.xml /language/types string.xml /reference/array/functions uasort.xml
| From: | Yannick Torres | Date: | Wed, 11 Feb 2009 07:22:50 +0000 |
| Subject: | cvs: phpdoc-fr /appendices reserved.constants.core.xml /install pecl.xml /language/predefined/iterator current.xml key.xml next.xml rewind.xml valid.xml /language/types string.xml /reference/array/functions uasort.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-6619@lists.php.net to get a copy of this message | ||
yannick Wed Feb 11 07:22:50 2009 UTC
Modified files:
/phpdoc-fr/appendices reserved.constants.core.xml
/phpdoc-fr/install pecl.xml
/phpdoc-fr/language/predefined/iterator rewind.xml key.xml
valid.xml next.xml
current.xml
/phpdoc-fr/language/types string.xml
/phpdoc-fr/reference/array/functions uasort.xml
Log:
sync with EN
http://cvs.php.net/viewvc.cgi/phpdoc-fr/appendices/reserved.constants.core.xml?r1=1.30&r2=1.31&diff_format=u Index: phpdoc-fr/appendices/reserved.constants.core.xml diff -u phpdoc-fr/appendices/reserved.constants.core.xml:1.30 phpdoc-fr/appendices/reserved.constants.core.xml:1.31 --- phpdoc-fr/appendices/reserved.constants.core.xml:1.30 Sat Dec 27 07:14:41 2008 +++ phpdoc-fr/appendices/reserved.constants.core.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.30 $ --> -<!-- EN-Revision: 1.23 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.31 $ --> +<!-- EN-Revision: 1.24 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <sect2 xml:id="reserved.constants.core" xmlns="http://docbook.org/ns/docbook"> @@ -490,6 +490,39 @@ </simpara> </listitem> </varlistentry> + <varlistentry> + <term> + &true; + (<type>boolean</type>) + </term> + <listitem> + <simpara> + Voir <link linkend="language.types.boolean">Booleans</link>. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + &false; + (<type>boolean</type>) + </term> + <listitem> + <simpara> + Voir <link linkend="language.types.boolean">Booleans</link>. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + &null; + (<type>boolean</type>) + </term> + <listitem> + <simpara> + Voir <link linkend="language.types.null">Null</link>. + </simpara> + </listitem> + </varlistentry> </variablelist> <para> Voir aussi les <link linkend="language.constants.predefined">constantes http://cvs.php.net/viewvc.cgi/phpdoc-fr/install/pecl.xml?r1=1.28&r2=1.29&diff_format=u Index: phpdoc-fr/install/pecl.xml diff -u phpdoc-fr/install/pecl.xml:1.28 phpdoc-fr/install/pecl.xml:1.29 --- phpdoc-fr/install/pecl.xml:1.28 Wed Jan 28 19:23:50 2009 +++ phpdoc-fr/install/pecl.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.28 $ --> -<!-- EN-Revision: 1.23 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.29 $ --> +<!-- EN-Revision: 1.25 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <chapter xml:id="install.pecl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -238,12 +238,12 @@ <function>phpinfo</function>: <screen> <![CDATA[ -Configuration File (php.ini) Path C:\WINDOWS +Configuration File (php.ini) Path C:\WINDOWS ]]> </screen> <screen> <![CDATA[ -Loaded Configuration File C:\Program Files\PHP\5.2\php.ini +Loaded Configuration File C:\Program Files\PHP\5.2\php.ini ]]> </screen> </para> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/predefined/iterator/rewind.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-fr/language/predefined/iterator/rewind.xml diff -u phpdoc-fr/language/predefined/iterator/rewind.xml:1.1 phpdoc-fr/language/predefined/iterator/rewind.xml:1.2 --- phpdoc-fr/language/predefined/iterator/rewind.xml:1.1 Fri Jan 2 21:45:59 2009 +++ phpdoc-fr/language/predefined/iterator/rewind.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="iterator.rewind" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/predefined/iterator/key.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-fr/language/predefined/iterator/key.xml diff -u phpdoc-fr/language/predefined/iterator/key.xml:1.1 phpdoc-fr/language/predefined/iterator/key.xml:1.2 --- phpdoc-fr/language/predefined/iterator/key.xml:1.1 Fri Jan 2 21:45:59 2009 +++ phpdoc-fr/language/predefined/iterator/key.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="iterator.key" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/predefined/iterator/valid.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-fr/language/predefined/iterator/valid.xml diff -u phpdoc-fr/language/predefined/iterator/valid.xml:1.1 phpdoc-fr/language/predefined/iterator/valid.xml:1.2 --- phpdoc-fr/language/predefined/iterator/valid.xml:1.1 Fri Jan 2 21:45:59 2009 +++ phpdoc-fr/language/predefined/iterator/valid.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="iterator.valid" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/predefined/iterator/next.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-fr/language/predefined/iterator/next.xml diff -u phpdoc-fr/language/predefined/iterator/next.xml:1.1 phpdoc-fr/language/predefined/iterator/next.xml:1.2 --- phpdoc-fr/language/predefined/iterator/next.xml:1.1 Fri Jan 2 21:45:59 2009 +++ phpdoc-fr/language/predefined/iterator/next.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="iterator.next" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/predefined/iterator/current.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-fr/language/predefined/iterator/current.xml diff -u phpdoc-fr/language/predefined/iterator/current.xml:1.1 phpdoc-fr/language/predefined/iterator/current.xml:1.2 --- phpdoc-fr/language/predefined/iterator/current.xml:1.1 Fri Jan 2 21:45:59 2009 +++ phpdoc-fr/language/predefined/iterator/current.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="iterator.current" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/types/string.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-fr/language/types/string.xml diff -u phpdoc-fr/language/types/string.xml:1.10 phpdoc-fr/language/types/string.xml:1.11 --- phpdoc-fr/language/types/string.xml:1.10 Sat Jan 17 07:30:42 2009 +++ phpdoc-fr/language/types/string.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.18 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <sect1 xml:id="language.types.string"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/uasort.xml?r1=1.23&r2=1.24&diff_format=u Index: phpdoc-fr/reference/array/functions/uasort.xml diff -u phpdoc-fr/reference/array/functions/uasort.xml:1.23 phpdoc-fr/reference/array/functions/uasort.xml:1.24 --- phpdoc-fr/reference/array/functions/uasort.xml:1.23 Fri Mar 7 14:32:42 2008 +++ phpdoc-fr/reference/array/functions/uasort.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.23 $ --> -<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.24 $ --> +<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.uasort" xmlns="http://docbook.org/ns/docbook"> @@ -27,6 +27,7 @@ l'ordre actuel des éléments est significatif. </para> </refsect1> + <refsect1 role="parameters"> &reftitle.parameters; <para> @@ -52,12 +53,71 @@ </variablelist> </para> </refsect1> + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>uasort</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +// Fonction de comparaison +function cmp($a, $b) { + if ($a == $b) { + return 0; + } + return ($a < $b) ? -1 : 1; +} + +// Tableau à trier +$array = array('a' => 4, 'b' => 8, 'c' => -1, 'd' => -9, 'e' => 2, 'f' => 5, 'g' => 3, 'h' => -4); +print_r($array); + +// Trie et affiche le tableau résultant +uasort($array, 'cmp'); +print_r($array); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +Array +( + [a] => 4 + [b] => 8 + [c] => -1 + [d] => -9 + [e] => 2 + [f] => 5 + [g] => 3 + [h] => -4 +) +Array +( + [d] => -9 + [h] => -4 + [c] => -1 + [e] => 2 + [g] => 3 + [a] => 4 + [f] => 5 + [b] => 8 +) +]]> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> &reftitle.seealso; <para> @@ -72,6 +132,7 @@ </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file
http://cvs.php.net/viewvc.cgi/phpdoc-fr/appendices/reserved.constants.core.xml?r1=1.30&r2=1.31&diff_format=u Index: phpdoc-fr/appendices/reserved.constants.core.xml diff -u phpdoc-fr/appendices/reserved.constants.core.xml:1.30 phpdoc-fr/appendices/reserved.constants.core.xml:1.31 --- phpdoc-fr/appendices/reserved.constants.core.xml:1.30 Sat Dec 27 07:14:41 2008 +++ phpdoc-fr/appendices/reserved.constants.core.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.30 $ --> -<!-- EN-Revision: 1.23 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.31 $ --> +<!-- EN-Revision: 1.24 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <sect2 xml:id="reserved.constants.core" xmlns="http://docbook.org/ns/docbook"> @@ -490,6 +490,39 @@ </simpara> </listitem> </varlistentry> + <varlistentry> + <term> + &true; + (<type>boolean</type>) + </term> + <listitem> + <simpara> + Voir <link linkend="language.types.boolean">Booleans</link>. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + &false; + (<type>boolean</type>) + </term> + <listitem> + <simpara> + Voir <link linkend="language.types.boolean">Booleans</link>. + </simpara> + </listitem> + </varlistentry> + <varlistentry> + <term> + &null; + (<type>boolean</type>) + </term> + <listitem> + <simpara> + Voir <link linkend="language.types.null">Null</link>. + </simpara> + </listitem> + </varlistentry> </variablelist> <para> Voir aussi les <link linkend="language.constants.predefined">constantes http://cvs.php.net/viewvc.cgi/phpdoc-fr/install/pecl.xml?r1=1.28&r2=1.29&diff_format=u Index: phpdoc-fr/install/pecl.xml diff -u phpdoc-fr/install/pecl.xml:1.28 phpdoc-fr/install/pecl.xml:1.29 --- phpdoc-fr/install/pecl.xml:1.28 Wed Jan 28 19:23:50 2009 +++ phpdoc-fr/install/pecl.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.28 $ --> -<!-- EN-Revision: 1.23 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.29 $ --> +<!-- EN-Revision: 1.25 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <chapter xml:id="install.pecl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -238,12 +238,12 @@ <function>phpinfo</function>: <screen> <![CDATA[ -Configuration File (php.ini) Path C:\WINDOWS +Configuration File (php.ini) Path C:\WINDOWS ]]> </screen> <screen> <![CDATA[ -Loaded Configuration File C:\Program Files\PHP\5.2\php.ini +Loaded Configuration File C:\Program Files\PHP\5.2\php.ini ]]> </screen> </para> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/predefined/iterator/rewind.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-fr/language/predefined/iterator/rewind.xml diff -u phpdoc-fr/language/predefined/iterator/rewind.xml:1.1 phpdoc-fr/language/predefined/iterator/rewind.xml:1.2 --- phpdoc-fr/language/predefined/iterator/rewind.xml:1.1 Fri Jan 2 21:45:59 2009 +++ phpdoc-fr/language/predefined/iterator/rewind.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="iterator.rewind" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/predefined/iterator/key.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-fr/language/predefined/iterator/key.xml diff -u phpdoc-fr/language/predefined/iterator/key.xml:1.1 phpdoc-fr/language/predefined/iterator/key.xml:1.2 --- phpdoc-fr/language/predefined/iterator/key.xml:1.1 Fri Jan 2 21:45:59 2009 +++ phpdoc-fr/language/predefined/iterator/key.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="iterator.key" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/predefined/iterator/valid.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-fr/language/predefined/iterator/valid.xml diff -u phpdoc-fr/language/predefined/iterator/valid.xml:1.1 phpdoc-fr/language/predefined/iterator/valid.xml:1.2 --- phpdoc-fr/language/predefined/iterator/valid.xml:1.1 Fri Jan 2 21:45:59 2009 +++ phpdoc-fr/language/predefined/iterator/valid.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="iterator.valid" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/predefined/iterator/next.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-fr/language/predefined/iterator/next.xml diff -u phpdoc-fr/language/predefined/iterator/next.xml:1.1 phpdoc-fr/language/predefined/iterator/next.xml:1.2 --- phpdoc-fr/language/predefined/iterator/next.xml:1.1 Fri Jan 2 21:45:59 2009 +++ phpdoc-fr/language/predefined/iterator/next.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="iterator.next" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/predefined/iterator/current.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-fr/language/predefined/iterator/current.xml diff -u phpdoc-fr/language/predefined/iterator/current.xml:1.1 phpdoc-fr/language/predefined/iterator/current.xml:1.2 --- phpdoc-fr/language/predefined/iterator/current.xml:1.1 Fri Jan 2 21:45:59 2009 +++ phpdoc-fr/language/predefined/iterator/current.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="iterator.current" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/language/types/string.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-fr/language/types/string.xml diff -u phpdoc-fr/language/types/string.xml:1.10 phpdoc-fr/language/types/string.xml:1.11 --- phpdoc-fr/language/types/string.xml:1.10 Sat Jan 17 07:30:42 2009 +++ phpdoc-fr/language/types/string.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.17 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.18 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <sect1 xml:id="language.types.string"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/uasort.xml?r1=1.23&r2=1.24&diff_format=u Index: phpdoc-fr/reference/array/functions/uasort.xml diff -u phpdoc-fr/reference/array/functions/uasort.xml:1.23 phpdoc-fr/reference/array/functions/uasort.xml:1.24 --- phpdoc-fr/reference/array/functions/uasort.xml:1.23 Fri Mar 7 14:32:42 2008 +++ phpdoc-fr/reference/array/functions/uasort.xml Wed Feb 11 07:22:50 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.23 $ --> -<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.24 $ --> +<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.uasort" xmlns="http://docbook.org/ns/docbook"> @@ -27,6 +27,7 @@ l'ordre actuel des éléments est significatif. </para> </refsect1> + <refsect1 role="parameters"> &reftitle.parameters; <para> @@ -52,12 +53,71 @@ </variablelist> </para> </refsect1> + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>uasort</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +// Fonction de comparaison +function cmp($a, $b) { + if ($a == $b) { + return 0; + } + return ($a < $b) ? -1 : 1; +} + +// Tableau à trier +$array = array('a' => 4, 'b' => 8, 'c' => -1, 'd' => -9, 'e' => 2, 'f' => 5, 'g' => 3, 'h' => -4); +print_r($array); + +// Trie et affiche le tableau résultant +uasort($array, 'cmp'); +print_r($array); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +Array +( + [a] => 4 + [b] => 8 + [c] => -1 + [d] => -9 + [e] => 2 + [f] => 5 + [g] => 3 + [h] => -4 +) +Array +( + [d] => -9 + [h] => -4 + [c] => -1 + [e] => 2 + [g] => 3 + [a] => 4 + [f] => 5 + [b] => 8 +) +]]> + </screen> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> &reftitle.seealso; <para> @@ -72,6 +132,7 @@ </simplelist> </para> </refsect1> + </refentry> <!-- Keep this comment at the end of the file