reference/array/functions/array-count-values.xml
6b56e6f444e49396ee5122258ee85b99a8543f6a
...
...
@@ -3,7 +3,7 @@
3
3
<refentry xml:id="function.array-count-values" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>array_count_values</refname>
6
-
<refpurpose>Counts all the values of an array</refpurpose>
6
+
<refpurpose>Counts the occurrences of each distinct value in an array</refpurpose>
7
7
</refnamediv>
8
8
9
9
<refsect1 role="description">
...
...
@@ -14,7 +14,7 @@
14
14
</methodsynopsis>
15
15
<para>
16
16
<function>array_count_values</function> returns an array using
17
-
the values of <parameter>array</parameter> as keys and
17
+
the values of <parameter>array</parameter> (which must be &integer;s or &string;s) as keys and
18
18
their frequency in <parameter>array</parameter> as values.
19
19
</para>
20
20
</refsect1>
...
...
@@ -49,7 +49,7 @@
49
49
&reftitle.errors;
50
50
<para>
51
51
Throws <constant>E_WARNING</constant> for every element which is not
52
-
<type>string</type> or <type>integer</type>.
52
+
<type>string</type> or <type>int</type>.
53
53
</para>
54
54
</refsect1>
55
55

56
56