Hey! I am trying to count the number of times a certain string exists inside an array. I have tried this.. My array:
$test = array('correct','correct','incorrect','incorrect','correct');
in_array('correct',$test); // only gives me true
I thought about count(); but that only returns the count of items...So how can count for how many "correct" strings are in that array?
Thanks!