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 Which in-built function will add a value to the end of an array? array_push() inend_array() into_array() array_unshift() array_push() inend_array() into_array() array_unshift() ANSWER DOWNLOAD EXAMIANS APP
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); none of the mentioned red green blue none of the mentioned red green blue ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$fruits = array ("apple", "mango", "peach", "pear", "orange");$subset = array_splice ($fruits, 2);print_r ($fruits); Array ( [0] => apple [1] => mango ) Array ( [0] => pear [1] => orange ) Array ( [0] => apple [1] => mango [2] => peach ) Error Array ( [0] => apple [1] => mango ) Array ( [0] => pear [1] => orange ) Array ( [0] => apple [1] => mango [2] => peach ) Error 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 4 6 4hello2 2 4 6 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will the following script output?$array = array (1, 2, 3, 5, 8, 13, 21, 34, 55);$sum = 0;for ($i = 0; $i < 5; $i++) {$sum += $array[$array[$i]];}echo $sum; 19 78 NULL 5 19 78 NULL 5 ANSWER DOWNLOAD EXAMIANS APP