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("red", "green", "blue");array_pop($a);print_r($a); Array ( [0] => red [1] => blue ) Array ( [0] => green [1] => blue ) Array ( [0] => blue [1] => blue ) Array ( [0] => red [1] => green ) Array ( [0] => red [1] => blue ) Array ( [0] => green [1] => blue ) Array ( [0] => blue [1] => blue ) Array ( [0] => red [1] => green ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What function computes the difference of arrays? array_diff arrays_diff diff_array diff_arrays array_diff arrays_diff diff_array diff_arrays 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)); 120 024 010 060 120 024 010 060 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 Sam is the brother of Jack and Bob) Error Sam is the brother of Bob and Bob) Sam is the brother of Bob and Jack Sam is the brother of Jack and Bob) 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? 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. Yes, because the interpreter must always create a copy of the array before passing it to the function. No 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. Yes, because the interpreter must always create a copy of the array before passing it to the function. No ANSWER DOWNLOAD EXAMIANS APP