array_count_values 配列の値の数を数える &reftitle.description; arrayarray_count_values arrayinput array_count_values は、 配列 input の値をキーとし、 input におけるその値の出現回数を値とした配列を返します。 &reftitle.parameters; input 値を数える配列。 &reftitle.returnvalues; input のキーとその登場回数を組み合わせた連想配列を返します。 &reftitle.errors; string あるいは integer 以外の型の要素が登場するたびに E_WARNING が発生します。 &reftitle.examples; <function>array_count_values</function> の例 ]]> &example.outputs; 2 [hello] => 2 [world] => 1 ) ]]> &reftitle.seealso; count array_unique array_values count_chars