PHP Arrays What will be the output of the following PHP code?$cars = array("Volvo", "BMW", "Toyota");echo "I like " . $cars[2] . ", " . $cars[1] . " and " . $cars[0] . "."; I like Volvo, Toyota and BMW I like Volvo, BMW and Toyota I like Toyota, BMW and Volvo I like BMW, Volvo and Toyota I like Volvo, Toyota and BMW I like Volvo, BMW and Toyota I like Toyota, BMW and Volvo I like BMW, Volvo and Toyota ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$array1 = array ("KA", "LA", "CA", "MA", "TA");$array2 = array ("KA", "IA", "CA", "GA", "TA");$inter = array_intersect ($array1, $array2);print_r ($inter); Array ( [0] => KA [1] => LA [2] => CA [3] => MA [4] => TA [5] => IA [6] => GA ) Array ( [1] => IA [3] => GA ) Array ( [0] => KA [2] => CA [4] => TA ) Array ( [1] => LA [3] => MA ) Array ( [0] => KA [1] => LA [2] => CA [3] => MA [4] => TA [5] => IA [6] => GA ) Array ( [1] => IA [3] => GA ) Array ( [0] => KA [2] => CA [4] => TA ) Array ( [1] => LA [3] => MA ) 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); Peter Lucy Edmund Susan Peter Lucy Edmund Susan ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which function will return true if a variable is an array or false if it is not? do_array() this_array() is_array() in_array() do_array() this_array() is_array() in_array() 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, because PHP must monitor the execution of the function to determine if changes are made to the array. Yes, but only if the array is large. No 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, because PHP must monitor the execution of the function to determine if changes are made to the array. Yes, but only if the array is large. No Yes, because the interpreter must always create a copy of the array before passing it to the function. 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() usort() krsort() asort() sort() ksort() usort() krsort() asort() sort() ANSWER DOWNLOAD EXAMIANS APP