PHP Arrays What will be the output of the following PHP code ?$age = array("Harry" => "21", "Ron" => "23","Malfoy" => "21");array_change_key_case($age, CASE_UPPER);array_pop($age);print_r($age); Array ( [HARRY] => 21 [RON] => 23 ) Array ( [HARRY] => 21 [RON] => 23 [MALFOY] => 21 ) Array ( [Harry] => 21 [Ron] => 23 ) Array ( [Harry] => 21 [Ron] => 23 [Malfoy] => 21 ) Array ( [HARRY] => 21 [RON] => 23 ) Array ( [HARRY] => 21 [RON] => 23 [MALFOY] => 21 ) Array ( [Harry] => 21 [Ron] => 23 ) Array ( [Harry] => 21 [Ron] => 23 [Malfoy] => 21 ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$fruits = array ("apple", "mango", "peach", "pear", "orange");$subset = array_splice ($fruits, 2);print_r ($fruits); Error Array ( [0] => pear [1] => orange ) Array ( [0] => apple [1] => mango ) Array ( [0] => apple [1] => mango [2] => peach ) Error Array ( [0] => pear [1] => orange ) Array ( [0] => apple [1] => mango ) Array ( [0] => apple [1] => mango [2] => peach ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which function can be used to move the pointer to the previous array position? previous() last() prev() before() previous() last() prev() before() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$fruits = array ("apple", "mango", "peach", "pear", "orange");$subset = array_slice ($fruits, 2);print_r ($subset); Array ( [0] => peach ) Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => apple [1] => mango ) Array ( [0] => peach [1] => pear [2] => orange ) Array ( [0] => peach ) Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => apple [1] => mango ) Array ( [0] => peach [1] => pear [2] => orange ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$face = array ("A", "J", "Q", "K");$number = array ("2","3","4", "5", "6", "7", "8", "9", "10");$cards = array_merge ($face, $number);print_r ($cards); Array ( [0] => 2 [1] => 3 [2] => 4 [3] => 5 [4] => 6 [5] => 7 [6] => 8 [7] => 9 [8] => 10 [9] => A [10] => J [11] => Q [12] => K ) Error Array ( [0] => A [1] => 2 [2] => J [3] => 3 [4] => Q [5] => 4 [6] => K [7] => 5 [8] => 6 [9] => 7 [10] => 8 [11] => 9 [12] => 10 ) Array ( [0] => A [1] => J [2] => Q [3] => K [4] => 2 [5] => 3 [6] => 4 [7] => 5 [8] => 6 [9] => 7 [10] => 8 [11] => 9 [12] => 10 ) Array ( [0] => 2 [1] => 3 [2] => 4 [3] => 5 [4] => 6 [5] => 7 [6] => 8 [7] => 9 [8] => 10 [9] => A [10] => J [11] => Q [12] => K ) Error Array ( [0] => A [1] => 2 [2] => J [3] => 3 [4] => Q [5] => 4 [6] => K [7] => 5 [8] => 6 [9] => 7 [10] => 8 [11] => 9 [12] => 10 ) Array ( [0] => A [1] => J [2] => Q [3] => K [4] => 2 [5] => 3 [6] => 4 [7] => 5 [8] => 6 [9] => 7 [10] => 8 [11] => 9 [12] => 10 ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$a = array("A", "Cat", "Dog", "A", "Dog");print_r(array_count_values($a)); Array ( [A] => 2 [Cat] => 2 [Dog] => 1 ) Array ( [A] => 2 [Cat] => 1 [Dog] => 1) Array ( [A] => 1 [Cat] => 1 [Dog] => 2 ) Array ( [A] => 2 [Cat] => 1 [Dog] => 2 ) Array ( [A] => 2 [Cat] => 2 [Dog] => 1 ) Array ( [A] => 2 [Cat] => 1 [Dog] => 1) Array ( [A] => 1 [Cat] => 1 [Dog] => 2 ) Array ( [A] => 2 [Cat] => 1 [Dog] => 2 ) ANSWER DOWNLOAD EXAMIANS APP