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] => peach [1] => pear [2] => orange ) Array ( [0] => apple [1] => mango ) Array ( [0] => peach ) Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => peach [1] => pear [2] => orange ) Array ( [0] => apple [1] => mango ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays There are three different kind of arrays: Numeric array, Associative array, Multidimensional array Numeric array, Associative array, Dimensional array Const array, Associative array, Multidimensional array Numeric array, String array, Multidimensional array Numeric array, Associative array, Multidimensional array Numeric array, Associative array, Dimensional array Const array, Associative array, Multidimensional array Numeric array, String array, Multidimensional array ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What elements will the following script output?$array = array (true => 'a', 1 => 'b');var_dump ($array); True => 'a', 1 => 'b' 1 => 'b' It will output NULL None True => 'a', 1 => 'b' 1 => 'b' It will output NULL None 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 array's elements An array with properties of that object as the Key elements An array with keys of that object as the array's 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 properties of that object as the Key elements An array with keys of that object as the array's elements An array with properties of that array as the object's elements ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Assume you would like to sort an array in ascending order by value while preserving key associations. Which of the following PHP sorting functions would you use? sort() asort() ksort() usort() krsort() sort() asort() ksort() usort() krsort() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$a1 = array("a" => "red", "b" => "green", "c" => "blue", "d" => "yellow");$a2 = array("e" => "red", "f" => "green", "g" => "blue", "h" => "orange");$a3 = array("i" => "orange");$a4 = array_combine($a2, $a3);$result = array_diff($a4, $a2);print_r($result); Array ( [d] => yellow [h] => orange ) Array ( [i] => orange ) Array ( [d] => yellow ) Array ( [h] => orange ) Array ( [d] => yellow [h] => orange ) Array ( [i] => orange ) Array ( [d] => yellow ) Array ( [h] => orange ) ANSWER DOWNLOAD EXAMIANS APP