1. Array ( [A] => 5 [Cat] => 2 [Dog] => 2 [Tiger] => 1 )
  2. Array ( [A] => 2 [Cat] => 2 [Dog] => 1 [Tiger] => 1 )
  3. Array ( [A] => 6 [Cat] => 1 [Dog] => 2 [Tiger] => 1 )
  4. Array ( [A] => 2 [Cat] => 1 [Dog] => 4 [Tiger] => 1 )

Share with your friends
AhmedNazir

Call

Answer: Option 1

The array_count_values() function counts all the values of an array and array_combine() combines arrays.

Talk Doctor Online in Bissoy App