I want create array from looping.
I have tried using array_count_values()
for count the array element, but variable from looping not read as array.
it's my code
$var_from_loop = "true,true,true,false,false";
I expect the output of:
true = 3
false = 2