mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-04-27 18:53:21 +02:00
88c52a26f0
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@114768 c90b9560-bf6c-de11-be94-00142212c4b1
66 lines
2.1 KiB
XML
66 lines
2.1 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- splitted from ./fr/functions/array.xml, last change in rev 1.30 -->
|
|
<!-- last change to 'uasort' in en/ tree in rev 1.2 -->
|
|
<refentry id="function.uasort">
|
|
<refnamediv>
|
|
<refname>uasort</refname>
|
|
<refpurpose>
|
|
Trie un tableau en utilisant une fonction de comparaison personnalisée
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>void</type><methodname>uasort</methodname>
|
|
<methodparam><type>array</type><parameter>array</parameter></methodparam>
|
|
<methodparam><type>callback</type><parameter>cmp_function</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>uasort</function> trie le tableau <parameter>array</parameter>
|
|
en conservant la correspondance entre les index et leurs valeurs.
|
|
<function>uasort</function> sert essentiellement lors de tri de tableaux
|
|
associatifs où l'ordre des éléments est significatif. La
|
|
fonction de comparaison utilisée <parameter>cmp_function</parameter>
|
|
est définie par l'utilisateur.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Voyez les fonctions <function>usort</function> et
|
|
<function>uksort</function> pour des exemples de tris avec utilisation
|
|
de fonction personnalisée.
|
|
</para>
|
|
</note>
|
|
<para>
|
|
Voir aussi
|
|
<function>usort</function>,
|
|
<function>uksort</function>,
|
|
<function>sort</function>,
|
|
<function>asort</function>,
|
|
<function>arsort</function>,
|
|
<function>ksort</function> et
|
|
<function>rsort</function>.
|
|
</para>
|
|
</refsect1>
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|