Name
array_count_values
Synopsis
array array_count_values(array array
)
Returns an array whose elements’ keys are the input array’s values. The value of each key is the number of times that key appears in the input array as a value.
Get Programming PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.