PHP Arrays What will be the output of the following PHP code?$a = array("A", "Cat", "Dog", "A", "Dog");print_r(array_count_values($a)); Array ( [A] => 2 [Cat] => 1 [Dog] => 2 ) Array ( [A] => 2 [Cat] => 2 [Dog] => 1 ) Array ( [A] => 2 [Cat] => 1 [Dog] => 1) Array ( [A] => 1 [Cat] => 1 [Dog] => 2 ) Array ( [A] => 2 [Cat] => 1 [Dog] => 2 ) Array ( [A] => 2 [Cat] => 2 [Dog] => 1 ) Array ( [A] => 2 [Cat] => 1 [Dog] => 1) Array ( [A] => 1 [Cat] => 1 [Dog] => 2 ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$place = array("NYC", "LA", "Paris");array_pop($place);$place1 = array("Paris");$place = array_merge($place, $place1);print_r($place); Array ( [0] => NYC [1] => LA [2] => Paris) Array ( [0] => NYC [1] => LA [2] => Paris [3] => Paris ) Array ( [0] => LA [1] => Paris [2] => Paris ) None of the mentioned Array ( [0] => NYC [1] => LA [2] => Paris) Array ( [0] => NYC [1] => LA [2] => Paris [3] => Paris ) Array ( [0] => LA [1] => Paris [2] => Paris ) None of the mentioned ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$number = range(0, 5);print_r ($number); Array ( [0] => 0 [1] => 0 [2] => 0 [3] => 0 [4] => 0 [5] => 0 ) Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 ) Array ( [0] => 5 [1] => 5 [2] => 5 [3] => 5 [4] => 5 [5] => 5 ) Array ( [0] => 0 [5] => 5 ) Array ( [0] => 0 [1] => 0 [2] => 0 [3] => 0 [4] => 0 [5] => 0 ) Array ( [0] => 0 [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 ) Array ( [0] => 5 [1] => 5 [2] => 5 [3] => 5 [4] => 5 [5] => 5 ) Array ( [0] => 0 [5] => 5 ) ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which function returns an array consisting of associative key/value pairs? count_values() array_count() count() array_count_values() count_values() array_count() count() array_count_values() 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 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. No Yes, because the interpreter must always create a copy of the array before passing it to the function. 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. 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 What will be the output of the following PHP code ?$a = array(12, 5, 2);echo(array_product($a)); 060 024 120 010 060 024 120 010 ANSWER DOWNLOAD EXAMIANS APP