PHP Arrays What will be the output of the following PHP code?$number = array ("4", "hello", 2);echo (array_sum ($number)); 4 2 4hello2 6 4 2 4hello2 6 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); red blue none of the mentioned green red blue none of the mentioned green 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] . "."; Sam is the brother of Bob and Bob) Sam is the brother of Jack and Bob) Sam is the brother of Bob and Jack Error Sam is the brother of Bob and Bob) Sam is the brother of Jack and Bob) Sam is the brother of Bob and Jack Error ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What functions count elements in an array?1. count2. Sizeof3. Array_Count4. Count_array Option 1 and 2 Option 1 and 4 Option 3 and 4 Option 2 and 4 Option 1 and 2 Option 1 and 4 Option 3 and 4 Option 2 and 4 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which in-built function will add a value to the end of an array? into_array() array_push() array_unshift() inend_array() into_array() array_push() array_unshift() inend_array() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$array = array("red", "green");array_push($array, "blue", "yellow");print_r($array); Array ( [0] => blue [1] => yellow ) Array ( [0] => red [1] => green [2] => blue [3] => yellow ) Array ( [0] => red [1] => green ) Array ( [0] => blue [1] => yellow [2] => red [3] => green ) Array ( [0] => blue [1] => yellow ) Array ( [0] => red [1] => green [2] => blue [3] => yellow ) Array ( [0] => red [1] => green ) Array ( [0] => blue [1] => yellow [2] => red [3] => green ) ANSWER DOWNLOAD EXAMIANS APP