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] => apple [1] => mango [2] => peach ) Array ( [0] => peach ) Array ( [0] => apple [1] => mango ) Array ( [0] => peach [1] => pear [2] => orange ) Array ( [0] => apple [1] => mango [2] => peach ) Array ( [0] => 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?$fname = array("Peter", "Ben", "Joe");$age = array("35", "37", "43");$c = array_combine($fname, $age);print_r($c); Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( Peter Ben Joe ) Array ( “[Peter] => 35” “[Ben] => 37” “[Joe] => 43” ) Array ( 35 37 43 ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( Peter Ben Joe ) Array ( “[Peter] => 35” “[Ben] => 37” “[Joe] => 43” ) Array ( 35 37 43 ) 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
PHP Arrays Which function can be used to move the pointer to the previous array position? last() previous() before() prev() last() previous() before() prev() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Absent any actual need for choosing one method over the other, does passing arrays by value to a read-only function reduce performance compared to passing them by reference? Yes, but only if the function modifies the contents of the array. Yes, but only if the array is large. No Yes, because PHP must monitor the execution of the function to determine if changes are made to the array. Yes, because the interpreter must always create a copy of the array before passing it to the function. Yes, but only if the function modifies the contents of the array. Yes, but only if the array is large. No Yes, because PHP must monitor the execution of the function to determine if changes are made to the array. Yes, because the interpreter must always create a copy of the array before passing it to the function. ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$people = array("Peter", "Susan", "Edmund", "Lucy");echo pos($people); Susan Lucy Peter Edmund Susan Lucy Peter Edmund ANSWER DOWNLOAD EXAMIANS APP