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 Ben Joe ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( “[Peter] => 35” “[Ben] => 37” “[Joe] => 43” ) Array ( 35 37 43 ) Array ( Peter Ben Joe ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( “[Peter] => 35” “[Ben] => 37” “[Joe] => 43” ) Array ( 35 37 43 ) 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; 5 NULL 78 19 5 NULL 78 19 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, 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. Yes, because PHP must monitor the execution of the function to determine if changes are made to the array. 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, 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 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 Susan Edmund Peter Lucy Susan Edmund Peter 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)); 4 2 4hello2 6 4 2 4hello2 6 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($age, $fname);print_r($c); Array ( [35] => Peter [37] => Ben [43] => Joe ) Array ( 35 37 43 ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( Peter Ben Joe ) Array ( [35] => Peter [37] => Ben [43] => Joe ) Array ( 35 37 43 ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( Peter Ben Joe ) ANSWER DOWNLOAD EXAMIANS APP