Hi
I have an array $a with values 5,7,5,8 and i want to find out how many times the number 5 is in the array can someone help ?
Thanks
You can use [man]array_count_values/man, or [man]array_keys/man with [man]count/man, or simply iterate over the array yourself with a counter.