PHP Arrays What will be the output of the following PHP code?$number = array ("4", "hello", 2);echo (array_sum ($number)); 4hello2 4 6 2 4hello2 4 6 2 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$array1 = array ("KA", "LA", "CA", "MA", "TA");$array2 = array ("KA", "IA", "CA", "GA", "TA");$inter = array_intersect ($array1, $array2);print_r ($inter); Array ( [0] => KA [1] => LA [2] => CA [3] => MA [4] => TA [5] => IA [6] => GA ) Array ( [1] => IA [3] => GA ) Array ( [0] => KA [2] => CA [4] => TA ) Array ( [1] => LA [3] => MA ) Array ( [0] => KA [1] => LA [2] => CA [3] => MA [4] => TA [5] => IA [6] => GA ) Array ( [1] => IA [3] => GA ) Array ( [0] => KA [2] => CA [4] => TA ) Array ( [1] => LA [3] => MA ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which in-built function will add a value to the end of an array? array_unshift() array_push() inend_array() into_array() array_unshift() array_push() inend_array() into_array() ANSWER DOWNLOAD EXAMIANS APP
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 [3] => peach [2] => pear ) Array ( [1] => apple [0] => mango [2] => peach [3] => pear ) Array ( [0] => apple [1] => mango [2] => peach [3] => pear ) Error Array ( [1] => apple [0] => mango [3] => peach [2] => pear ) Array ( [1] => apple [0] => mango [2] => peach [3] => pear ) Array ( [0] => apple [1] => mango [2] => peach [3] => pear ) Error ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$names = array("Sam", "Bob", "Jack");echo $names[0] . "is the brother of " . $names[1] . " and " . $names[1] . ".".$brother; $brother Sam is the brother of Bob and Bob) $brother Sam is the brother of Bob and Bob) Error $brother Sam is the brother of Bob and Bob) $brother Sam is the brother of Bob and Bob) Error 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] => red [1] => blue ) Array ( [0] => red [1] => green ) Array ( [0] => green [1] => blue ) Array ( [0] => blue [1] => blue ) Array ( [0] => red [1] => blue ) Array ( [0] => red [1] => green ) Array ( [0] => green [1] => blue ) Array ( [0] => blue [1] => blue ) ANSWER DOWNLOAD EXAMIANS APP