PHP Arrays Which in-built function will add a value to the end of an array? inend_array() array_push() array_unshift() into_array() inend_array() array_push() array_unshift() into_array() 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] => blue [1] => yellow [2] => red [3] => green ) Array ( [a] => blue [b] => yellow [c] => red [d] => green ) Array ( [0] => red [1] => green [2] => blue [3] => yellow ) Array ( [a] => red [b] => green [c] => blue [d] => yellow ) Array ( [0] => blue [1] => yellow [2] => red [3] => green ) Array ( [a] => blue [b] => yellow [c] => red [d] => green ) Array ( [0] => red [1] => green [2] => blue [3] => yellow ) 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”); 2, 3 and 4 2 and 3 3 and 4 Only 1 2, 3 and 4 2 and 3 3 and 4 Only 1 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?$fruits = array ("mango", "apple", "pear", "peach");$fruits = array_flip($fruits);echo ($fruits[0]); peach mango 0 error peach mango 0 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; Error Sam is the brother of Bob and Bob) Sam is the brother of Bob and Bob) $brother $brother Error Sam is the brother of Bob and Bob) Sam is the brother of Bob and Bob) $brother $brother ANSWER DOWNLOAD EXAMIANS APP