PHP Arrays PHP’s numerically indexed array begin with position ______. 0 2 1 -1 0 2 1 -1 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$number = array ("4", "hello", 2);echo (array_sum ($number)); 4hello2 2 4 6 4hello2 2 4 6 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? ksort() asort() sort() krsort() usort() ksort() asort() sort() krsort() usort() 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] => blue [b] => yellow [c] => red [d] => green ) Array ( [a] => red [b] => green [c] => blue [d] => yellow ) Array ( [0] => red [1] => green [2] => blue [3] => yellow ) Array ( [0] => blue [1] => yellow [2] => red [3] => green ) Array ( [a] => blue [b] => yellow [c] => red [d] => green ) Array ( [a] => red [b] => green [c] => blue [d] => yellow ) Array ( [0] => red [1] => green [2] => blue [3] => yellow ) Array ( [0] => blue [1] => yellow [2] => red [3] => green ) 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? No Yes, because PHP must monitor the execution of the function to determine if changes are made to the array. Yes, but only if the function modifies the contents of the array. Yes, but only if the array is large. Yes, because the interpreter must always create a copy of the array before passing it to the function. No Yes, because PHP must monitor the execution of the function to determine if changes are made to the array. Yes, but only if the function modifies the contents of the array. Yes, but only if the array is large. 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?$a = array("a"=>"red", "b"=>"green", "c"=>"blue");echo array_shift($a);print_r ($a); none of the mentioned green blue red none of the mentioned green blue red ANSWER DOWNLOAD EXAMIANS APP