<?xml version="1.0" encoding="utf-8"?> <!-- EN-Revision: 86e6094e86b84a51d00ab217ac50ce8dde33d82a Maintainer: pastore Status: ready --> <!-- CREDITS: cucinato --> <refentry xml:id="function.array-count-values" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>array_count_values</refname> <refpurpose>Conta tutti i valori di un array</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>array</type><methodname>array_count_values</methodname> <methodparam><type>array</type><parameter>array</parameter></methodparam> </methodsynopsis> <para> <function>array_count_values</function> restituisce un array usando i valori di <parameter>array</parameter> come chiavi e la loro frequenza in <parameter>array</parameter> come valori. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>array</parameter></term> <listitem> <para> L'array di valori da contare </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Restituisce un array associativo di valori da <parameter>array</parameter> come chiavi ed il loro conteggio come valore. </para> </refsect1> <refsect1 role="errors"> &reftitle.errors; <para> Lancia un <constant>E_WARNING</constant> per ogni elemento che non รจ <type>string</type> o <type>int</type>. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Esempio di <function>array_count_values</function></title> <programlisting role="php"> <![CDATA[ <?php $array = array(1, "ciao", 1, "mondo", "ciao"); print_r(array_count_values($array)); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ Array ( [1] => 2 [ciao] => 2 [mondo] => 1 ) ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>count</function></member> <member><function>array_unique</function></member> <member><function>array_values</function></member> <member><function>count_chars</function></member> </simplelist> </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:"~/.phpdoc/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 -->