PHP Arrays What will be the output of the following PHP code?$fruits = array ("mango", "apple", "peach", "pear");$fruits = asort ($fruits);printr ($fruits); Array ( [1] => apple [0] => mango [2] => peach [3] => pear ) Array ( [1] => apple [0] => mango [3] => peach [2] => pear ) Error Array ( [0] => apple [1] => mango [2] => peach [3] => pear ) Array ( [1] => apple [0] => mango [2] => peach [3] => pear ) Array ( [1] => apple [0] => mango [3] => peach [2] => pear ) Error Array ( [0] => apple [1] => mango [2] => peach [3] => pear ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$place = array("NYC", "LA", "Paris");array_pop($place);$place1 = array("Paris");$place = array_merge($place, $place1);print_r($place); Array ( [0] => NYC [1] => LA [2] => Paris [3] => Paris ) Array ( [0] => LA [1] => Paris [2] => Paris ) Array ( [0] => NYC [1] => LA [2] => Paris) None of the mentioned Array ( [0] => NYC [1] => LA [2] => Paris [3] => Paris ) Array ( [0] => LA [1] => Paris [2] => Paris ) Array ( [0] => NYC [1] => LA [2] => Paris) None of the mentioned 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 ( [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 ) Array ( [0] => Mumbai [1] => Beijing ) Array ( [1] => NYC [0] => London ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which function can be used to move the pointer to the previous array position? previous() before() last() prev() previous() before() last() prev() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which in-built function will add a value to the end of an array? inend_array() array_push() into_array() array_unshift() inend_array() array_push() into_array() array_unshift() 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 ( [c] => blue ) Array ( [d] => yellow ) Array ( [a] => red ) Array ( [e] => yellow ) Array ( [c] => blue ) Array ( [d] => yellow ) Array ( [a] => red ) ANSWER DOWNLOAD EXAMIANS APP