PHP Arrays What will be the output of the following PHP code?$a = array("a"=>"red", "b"=>"green", "c"=>"blue");echo array_shift($a);print_r ($a); red blue none of the mentioned green red blue none of the mentioned green ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$a = array(12, 5, 2);echo(array_product($a)); 010 060 024 120 010 060 024 120 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What elements will the following script output?$array = array (true => 'a', 1 => 'b');var_dump ($array); True => 'a', 1 => 'b' None It will output NULL 1 => 'b' True => 'a', 1 => 'b' None It will output NULL 1 => 'b' ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which array function checks if the specified key exists in the array? array_key_exists() array_key_exist() arrays_key_exists() array_keys_exists() array_key_exists() array_key_exist() arrays_key_exists() array_keys_exists() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$number = array ("4", "hello", 2);echo (array_sum ($number)); 4hello2 2 6 4 4hello2 2 6 4 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");$a2 = array("e"=>"red", "f"=>"green", "g"=>"blue");$result = array_diff($a1, $a2);print_r($result); Array ( [a] => red ) Array ( [c] => blue ) Array ( [d] => yellow ) Array ( [e] => yellow ) Array ( [a] => red ) Array ( [c] => blue ) Array ( [d] => yellow ) Array ( [e] => yellow ) ANSWER DOWNLOAD EXAMIANS APP