PHP Arrays What will be the output of the following PHP code?$number = array ("4", "hello", 2);echo (array_sum ($number)); 6 4hello2 4 2 6 4hello2 4 2 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$fruits = array ("apple", "orange", array ("pear", "mango"), "banana");echo (count($fruits, 1)); 4 3 6 5 4 3 6 5 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] => Mumbai [0] => Beijing ) Array ( [0] => NYC [1] => London ) Array ( [1] => NYC [0] => London ) Array ( [0] => Mumbai [1] => Beijing ) Array ( [1] => Mumbai [0] => Beijing ) Array ( [0] => NYC [1] => London ) Array ( [1] => NYC [0] => London ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$age = array("Peter"=>"35", "Ben"=>"37", "Joe"=>"43");print_r(array_change_key_case($age, CASE_UPPER)); Array ( [PeTeR] => 35 [BeN] => 37 [Joe] => 43 ) Array ( [PETER] => 35 [BEN] => 37 [JOE] => 43 ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( [peter] => 35 [ben] => 37 [joe] => 43 ) Array ( [PeTeR] => 35 [BeN] => 37 [Joe] => 43 ) Array ( [PETER] => 35 [BEN] => 37 [JOE] => 43 ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( [peter] => 35 [ben] => 37 [joe] => 43 ) 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 ( [e] => yellow ) Array ( [d] => yellow ) Array ( [c] => blue ) Array ( [a] => red ) Array ( [e] => yellow ) Array ( [d] => yellow ) Array ( [c] => blue ) Array ( [a] => red ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which function will return true if a variable is an array or false if it is not? in_array() is_array() this_array() do_array() in_array() is_array() this_array() do_array() ANSWER DOWNLOAD EXAMIANS APP