Hi All,
Im trying to count the number of instances of a value in an array and put that value into a variable but im a little stuck.
My example below prints to screen how many of each, but i want it broken down to a specific variable of that count.
$values = array(1,1,1,1,2);
$stateFrequency = array_count_values($values=1);
print_r($stateFrequency);