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 [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 ) Array ( [0] => peach ) Array ( [0] => apple [1] => mango [2] => peach ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$a = array("a"=>"red", "b"=>"green", "c"=>"blue");echo array_shift($a);print_r ($a); red none of the mentioned blue green red none of the mentioned blue green 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 array as the object'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 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 Key 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?$fruits = array ("mango", "apple", "peach", "pear");$fruits = asort ($fruits);printr ($fruits); Array ( [0] => apple [1] => mango [2] => peach [3] => pear ) Error Array ( [1] => apple [0] => mango [2] => peach [3] => pear ) Array ( [1] => apple [0] => mango [3] => peach [2] => pear ) Array ( [0] => apple [1] => mango [2] => peach [3] => pear ) Error Array ( [1] => apple [0] => mango [2] => peach [3] => pear ) Array ( [1] => apple [0] => mango [3] => peach [2] => pear ) 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]); error mango 0 peach error mango 0 peach ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$a = array(12, 5, 2);echo(array_product($a)); 060 024 120 010 060 024 120 010 ANSWER DOWNLOAD EXAMIANS APP