PHP Arrays What will be the output of the following PHP code ?$a1 = array("a" => "red", "b" => "green", "c" => "blue", "d" => "yellow");$a2 = array("e" => "red","f" => "green", "g" => "blue");$result = array_intersect($a1, $a2);print_r($result); Array ( [a] => red [b] => green [c] => blue ) Array ( [a] => red [b] => green [c] => blue [d] => yellow [e] => red [f] => green [g] => blue ) Array ( [e] => red [f] => green [g] => blue ) Array ( [a] => red [b] => green [c] => blue [d] => yellow ) Array ( [a] => red [b] => green [c] => blue ) Array ( [a] => red [b] => green [c] => blue [d] => yellow [e] => red [f] => green [g] => blue ) Array ( [e] => red [f] => green [g] => blue ) Array ( [a] => red [b] => green [c] => blue [d] => yellow ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which function returns an array consisting of associative key/value pairs? count_values() count() array_count() array_count_values() count_values() count() array_count() array_count_values() 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)); orangeorange appleorange orangebanana appleapple orangeorange appleorange orangebanana appleapple 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_splice ($fruits, 2);print_r ($fruits); Array ( [0] => pear [1] => orange ) Array ( [0] => apple [1] => mango ) Error Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => pear [1] => orange ) Array ( [0] => apple [1] => mango ) Error Array ( [0] => apple [1] => mango [2] => peach ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$a1 = array("a" => "red", "b" => "green", "c" => "blue", "d" => "yellow");$result = array_flip($a1);print_r($result); Array ( [red] => a [green] => b [blue] => c [yellow] => d ) Array ( [a] => red [b] => green [c] => blue [d] => yellow ) Array ( [a] => a [b] => b [c] => c [d] => d ) Array ( [red] => red [green] => green [blue] => blue [yellow] => yellow ) Array ( [red] => a [green] => b [blue] => c [yellow] => d ) Array ( [a] => red [b] => green [c] => blue [d] => yellow ) Array ( [a] => a [b] => b [c] => c [d] => d ) Array ( [red] => red [green] => green [blue] => blue [yellow] => yellow ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$number = range(0, 5);print_r ($number); Array ( [0] => 0 [5] => 5 ) Array ( [0] => 0 [1] => 0 [2] => 0 [3] => 0 [4] => 0 [5] => 0 ) Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 ) Array ( [0] => 5 [1] => 5 [2] => 5 [3] => 5 [4] => 5 [5] => 5 ) Array ( [0] => 0 [5] => 5 ) Array ( [0] => 0 [1] => 0 [2] => 0 [3] => 0 [4] => 0 [5] => 0 ) Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 ) Array ( [0] => 5 [1] => 5 [2] => 5 [3] => 5 [4] => 5 [5] => 5 ) ANSWER DOWNLOAD EXAMIANS APP