PHP Arrays What elements will the following script output?$array = array (true => 'a', 1 => 'b');var_dump ($array); It will output NULL 1 => 'b' True => 'a', 1 => 'b' None It will output NULL 1 => 'b' True => 'a', 1 => 'b' None 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 orangebanana appleorange appleapple orangeorange orangebanana appleorange appleapple ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$a = array("red", "green", "blue");array_pop($a);print_r($a); Array ( [0] => green [1] => blue ) Array ( [0] => red [1] => green ) Array ( [0] => red [1] => blue ) Array ( [0] => blue [1] => blue ) Array ( [0] => green [1] => blue ) Array ( [0] => red [1] => green ) Array ( [0] => red [1] => blue ) Array ( [0] => blue [1] => blue ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which of the following are correct ways of creating an array?1. state[0] = “karnataka”;2. $state[] = array(“karnataka”);3. $state[0] = “karnataka”;4. $state = array(“karnataka”); Only 1 3 and 4 2 and 3 2, 3 and 4 Only 1 3 and 4 2 and 3 2, 3 and 4 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) ); 1 False 2 True 1 False 2 True ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What function computes the difference of arrays? diff_arrays arrays_diff diff_array array_diff diff_arrays arrays_diff diff_array array_diff ANSWER DOWNLOAD EXAMIANS APP