How to calculate how many times it was derived and what is the result of the frequency of a particular element of the array.?
Here is my code:
$a = ["a","b","c","f","e","t","y","q","z","w"]; $b = count($a); for($i = 0; $i <= 10; ++$i){ $c = mt_rand(0,$b - 1); echo " Echod - \" " . strtoupper($a[$c])." \"<br>"; }