PHP Arrays What will be the output of the following PHP code?$names = array("Sam", "Bob", "Jack");echo $names[0] . "is the brother of " . $names[1] . " and " . $names[1] . ".".$brother; Sam is the brother of Bob and Bob) $brother Sam is the brother of Bob and Bob) $brother Error Sam is the brother of Bob and Bob) $brother Sam is the brother of Bob and Bob) $brother Error 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, but only if the function modifies the contents of 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 array is large. Yes, because PHP must monitor the execution of the function to determine if changes are made to the array. No Yes, but only if the function modifies the contents of 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 array is large. Yes, because PHP must monitor the execution of the function to determine if changes are made to the array. ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$names = array("Sam", "Bob", "Jack");echo $names[0] . "is the brother of " . $names[1] . " and " . $names[1] . "."; Sam is the brother of Bob and Bob) Sam is the brother of Bob and Jack Error Sam is the brother of Jack and Bob) Sam is the brother of Bob and Bob) Sam is the brother of Bob and Jack Error Sam is the brother of Jack and Bob) 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); Lucy Peter Edmund Susan Lucy Peter Edmund Susan ANSWER DOWNLOAD EXAMIANS APP
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, BMW and Toyota I like Volvo, Toyota and BMW I like Toyota, BMW and Volvo I like BMW, Volvo and Toyota I like Volvo, BMW and Toyota I like Volvo, Toyota and BMW I like Toyota, BMW and Volvo I like BMW, Volvo and Toyota ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will the following script output?$array = array (1, 2, 3, 5, 8, 13, 21, 34, 55);$sum = 0;for ($i = 0; $i < 5; $i++) {$sum += $array[$array[$i]];}echo $sum; NULL 5 19 78 NULL 5 19 78 ANSWER DOWNLOAD EXAMIANS APP