Skip to content

Function: array_count_values() ​

array_count_values<T>(array): Record<string, number>

Defined in: src/php-arrays.ts:263

Count all the values of an array.

Type Parameters ​

T ​

T extends string | number

Parameters ​

array ​

T[]

The source array

Returns ​

Record<string, number>

A record of values and their counts

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.