PHP Arrays
What will be the output of the following PHP code?
$a = array("A", "Cat", "Dog", "A", "Dog");
print_r(array_count_values($a));

Array ( [A] => 2 [Cat] => 2 [Dog] => 1 )
Array ( [A] => 2 [Cat] => 1 [Dog] => 2 )
Array ( [A] => 2 [Cat] => 1 [Dog] => 1)
Array ( [A] => 1 [Cat] => 1 [Dog] => 2 )

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What will be the output of the following PHP code?
$fruits = array ("apple", "mango", "peach", "pear", "orange");
$subset = array_slice ($fruits, 2);
print_r ($subset);

Array ( [0] => peach [1] => pear [2] => orange )
Array ( [0] => apple [1] => mango [2] => peach )
Array ( [0] => peach )
Array ( [0] => apple [1] => mango )

ANSWER DOWNLOAD EXAMIANS APP