PHP Arrays What will be the output of the following PHP code?$fruits = array ("apple", "orange", array ("pear", "mango"), "banana");echo (count($fruits, 1)); 3 5 4 6 3 5 4 6 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$a = array("a" => "Jaguar", "b" => "Land Rover", "c" => "Audi", "d" => "Maseratti");echo array_search("Audi", $a); a d c b a d c b ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What elements will the following script output?$array = array (true => 'a', 1 => 'b');var_dump ($array); It will output NULL 1 => 'b' None True => 'a', 1 => 'b' It will output NULL 1 => 'b' None True => 'a', 1 => 'b' ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$a=array("A","Cat","Dog","A","Dog");$b=array("A","A","Cat","A","Tiger");$c=array_combine($a,$b);print_r(array_count_values($c)); Array ( [A] => 2 [Cat] => 1 [Dog] => 4 [Tiger] => 1 ) Array ( [A] => 6 [Cat] => 1 [Dog] => 2 [Tiger] => 1 ) Array ( [A] => 5 [Cat] => 2 [Dog] => 2 [Tiger] => 1 ) Array ( [A] => 2 [Cat] => 2 [Dog] => 1 [Tiger] => 1 ) Array ( [A] => 2 [Cat] => 1 [Dog] => 4 [Tiger] => 1 ) Array ( [A] => 6 [Cat] => 1 [Dog] => 2 [Tiger] => 1 ) Array ( [A] => 5 [Cat] => 2 [Dog] => 2 [Tiger] => 1 ) Array ( [A] => 2 [Cat] => 2 [Dog] => 1 [Tiger] => 1 ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$state = array ("Karnataka", "Goa", "Tamil Nadu", "Andhra Pradesh");echo (array_search ("Tamil Nadu", $state) ); True 2 False 1 True 2 False 1 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$fruits = array ("apple", "orange", "banana");echo (next($fruits));echo (next($fruits)); orangebanana appleapple orangeorange appleorange orangebanana appleapple orangeorange appleorange ANSWER DOWNLOAD EXAMIANS APP