<?php $var_from_loop = "true,true,true,false,false"; $arr = explode("," , $var_from_loop); print_r(array_count_values($arr));
You have javascript disabled. You will not be able to edit any code.