Files
doc-fr/reference/array/functions/array-change-key-case.xml
Damien Seguy 88c52a26f0 early spring cleaning
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@114768 c90b9560-bf6c-de11-be94-00142212c4b1
2003-02-04 17:47:00 +00:00

76 lines
2.2 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- splitted from ./fr/functions/array.xml, last change in rev 1.44 -->
<!-- last change to 'array-change-key-case' in en/ tree in rev 1.113 -->
<refentry id="function.array-change-key-case">
<refnamediv>
<refname>array_change_key_case</refname>
<refpurpose>
Change la casse des cl&eacute;s du tableau
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>array</type><methodname>array_change_key_case</methodname>
<methodparam><type>array</type><parameter>input</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>case</parameter></methodparam>
</methodsynopsis>
<para>
<function>array_change_key_case</function> modifie les cl&eacute;s du
tableau <parameter>input</parameter>, et force leur type.
Le param&egrave;tre optionnel <parameter>case</parameter>
permet de forcer les cha&icirc;nes de caract&egrave;res en majuscules
<constant>CASE_UPPER</constant> ou minuscules
<constant>CASE_LOWER</constant>. La valeur par d&eacute;faut
est <constant>CASE_LOWER</constant>. Cette fonction
laissera les cl&eacute;s num&eacute;riques inchang&eacute;es.
</para>
<para>
<example>
<title>Exemple avec <function>array_change_key_case</function></title>
<programlisting role="php">
<![CDATA[
<?php
$input_array = array("PrEmIEr" => 1, "SecOnd" => 2);
print_r(array_change_key_case($input_array, CASE_UPPER));
?>
]]>
</programlisting>
</example>
L'exemple ci-dessus va afficher :
<informalexample>
<programlisting>
<![CDATA[
Array
(
[PREMIER] => 1
[SECOND] => 2
)
]]>
</programlisting>
</informalexample>
</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
-->