PHP Arrays What elements will the following script output?$array = array (true => 'a', 1 => 'b');var_dump ($array); 1 => 'b' It will output NULL True => 'a', 1 => 'b' None 1 => 'b' It will output NULL True => 'a', 1 => 'b' None ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$fruits = array ("mango", "apple", "pear", "peach");$fruits = array_flip($fruits);echo ($fruits[0]); peach 0 error mango peach 0 error mango ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$city_west = array("NYC", "London");$city_east = array("Mumbai", "Beijing");print_r(array_replace($city_west, $city_east)); Array ( [0] => Mumbai [1] => Beijing ) Array ( [1] => NYC [0] => London ) Array ( [1] => Mumbai [0] => Beijing ) Array ( [0] => NYC [1] => London ) Array ( [0] => Mumbai [1] => Beijing ) Array ( [1] => NYC [0] => London ) Array ( [1] => Mumbai [0] => Beijing ) Array ( [0] => NYC [1] => London ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays There are three different kind of arrays: Numeric array, Associative array, Multidimensional array Numeric array, String array, Multidimensional array Const array, Associative array, Multidimensional array Numeric array, Associative array, Dimensional array Numeric array, Associative array, Multidimensional array Numeric array, String array, Multidimensional array Const array, Associative array, Multidimensional array Numeric array, Associative array, Dimensional array ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Assume you would like to sort an array in ascending order by value while preserving key associations. Which of the following PHP sorting functions would you use? usort() sort() asort() ksort() krsort() usort() sort() asort() ksort() krsort() 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); d c a b d c a b ANSWER DOWNLOAD EXAMIANS APP