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]); error peach 0 mango error peach 0 mango ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays There are three different kind of arrays: Numeric array, String array, Multidimensional array Numeric array, Associative array, Dimensional array Const array, Associative array, Multidimensional array Numeric array, Associative array, Multidimensional array Numeric array, String array, Multidimensional array Numeric array, Associative array, Dimensional array Const array, Associative array, Multidimensional array Numeric array, Associative array, Multidimensional array 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; Error Sam is the brother of Bob and Bob) $brother Sam is the brother of Bob and Bob) $brother Error Sam is the brother of Bob and Bob) $brother Sam is the brother of Bob and Bob) $brother 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) Error Sam is the brother of Jack and Bob) Sam is the brother of Bob and Jack Sam is the brother of Bob and Bob) Error Sam is the brother of Jack and Bob) Sam is the brother of Bob and Jack ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What array will you get if you convert an object to an array? An array with properties of that object as the Key elements An array with properties of that array as the object's elements An array with properties of that object as the array's elements An array with keys of that object as the array's elements An array with properties of that object as the Key elements An array with properties of that array as the object's elements An array with properties of that object as the array's elements An array with keys of that object as the array's elements ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$a1 = array("red", "green");$a2 = array("blue", "yellow");$a3 = array_merge($a1, $a2);$a4 = array("a", "b", "c", "d");$a = array_combine($a4, $a3);print_r($a); Array ( [a] => red [b] => green [c] => blue [d] => yellow ) Array ( [0] => red [1] => green [2] => blue [3] => yellow ) Array ( [a] => blue [b] => yellow [c] => red [d] => green ) Array ( [0] => blue [1] => yellow [2] => red [3] => green ) Array ( [a] => red [b] => green [c] => blue [d] => yellow ) Array ( [0] => red [1] => green [2] => blue [3] => yellow ) Array ( [a] => blue [b] => yellow [c] => red [d] => green ) Array ( [0] => blue [1] => yellow [2] => red [3] => green ) ANSWER DOWNLOAD EXAMIANS APP