mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-26 01:42:09 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@78204 c90b9560-bf6c-de11-be94-00142212c4b1
77 lines
2.0 KiB
XML
77 lines
2.0 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 'array-values' in en/ tree in rev 1.2 -->
|
|
<refentry id="function.array-values">
|
|
<refnamediv>
|
|
<refname>array_values</refname>
|
|
<refpurpose>Retourne les valeurs d'un tableau </refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>array</type><methodname>array_values</methodname>
|
|
<methodparam><type>array</type><parameter>input</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>array_values</function>retourne les valeurs du tableau
|
|
<parameter>input</parameter>.
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title>Exemples avec <function>array_values</function></title>
|
|
<programlisting role="php">
|
|
<?php
|
|
$array = array("taille" => "XL", "couleur" => "or");
|
|
array_values($array); // // retourne array("XL", "or")
|
|
?>
|
|
</programlisting>
|
|
</example>
|
|
<note>
|
|
<para>
|
|
<function>array_values</function> a été ajoutée en PHP 4.
|
|
Ci-dessous, voici une implémentation pour ceux qui utilisent
|
|
toujours PHP 3.
|
|
<example>
|
|
<title>
|
|
Implémentation de <function>array_values</function> pour les utilisateurs
|
|
PHP 3
|
|
</title>
|
|
<programlisting role="php">
|
|
<?php
|
|
function array_values($arr){
|
|
$t = array();
|
|
while (list($k, $v) = each($arr)){
|
|
$t[] = $v;
|
|
}
|
|
return $t;
|
|
}
|
|
?>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</note>
|
|
</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
|
|
-->
|