1
0
mirror of https://github.com/php/doc-it.git synced 2026-03-26 08:32:15 +01:00
Files
archived-doc-it/reference/array/functions/array-change-key-case.xml
Marco Cucinato 654b4c1f0b sync to EN version
git-svn-id: https://svn.php.net/repository/phpdoc/it/trunk@107354 c90b9560-bf6c-de11-be94-00142212c4b1
2002-12-10 00:33:18 +00:00

73 lines
2.3 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- splitted from ./it/functions/array.xml, last change in rev 1.24 -->
<!-- last change to 'array-change-key-case' in en/ tree in rev 1.113 -->
<!-- EN-Revision: 1.6 Maintainer: cucinato Status: ready -->
<!-- OLD-Revision: 1.173/EN.1.113 -->
<refentry id="function.array-change-key-case">
<refnamediv>
<refname>array_change_key_case</refname>
<refpurpose>Restituisce un array con tutte le chiavi cambiate in maiuscolo o in minuscolo</refpurpose>
</refnamediv>
<refsect1>
<title>Descrizione</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> cambia le
chiavi nell'array <parameter>input</parameter> in modo che
siano tutte minuscole o maiuscole. Il tipo di cambiamento dipende
dal parametro opzionale <parameter>case</parameter>.
Si possono usare due costanti,
<constant>CASE_UPPER</constant> per le maiuscole e
<constant>CASE_LOWER</constant> per le minuscole. Il default è
<constant>CASE_LOWER</constant>. La funzione non modifica
le chiavi numeriche.
</para>
<example>
<title>esempio di <function>array_change_key_case</function></title>
<programlisting role="php">
<![CDATA[
$input_array = array("PriMo" => 1, "SecOndO" => 4);
print_r(array_change_key_case($input_array, CASE_UPPER));
]]>
</programlisting>
<para>
Il risultato di questo programma sarà:
<screen>
<![CDATA[
Array
(
[PRIMO] => 1
[SECONDO] => 2
)
]]>
</screen>
</para>
</example>
</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
-->