PHP Arrays What will be the output of the following PHP code?$fruits = array ("apple", "orange", array ("pear", "mango"), "banana");echo (count($fruits, 1)); 5 6 4 3 5 6 4 3 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which of the following are correct ways of creating an array?1. state[0] = “karnataka”;2. $state[] = array(“karnataka”);3. $state[0] = “karnataka”;4. $state = array(“karnataka”); Only 1 2, 3 and 4 3 and 4 2 and 3 Only 1 2, 3 and 4 3 and 4 2 and 3 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 will be the output of the following PHP code?$fruits = array ("apple", "orange", "banana");echo (next($fruits));echo (next($fruits)); appleapple orangebanana appleorange orangeorange appleapple orangebanana appleorange orangeorange 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)); 6 4hello2 2 4 6 4hello2 2 4 ANSWER DOWNLOAD EXAMIANS APP
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]); 0 peach error mango 0 peach error mango ANSWER DOWNLOAD EXAMIANS APP