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 ( Peter Ben Joe ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( [35] => Peter [37] => Ben [43] => Joe ) Array ( 35 37 43 ) Array ( Peter Ben Joe ) Array ( [Peter] => 35 [Ben] => 37 [Joe] => 43 ) Array ( [35] => Peter [37] => Ben [43] => Joe ) Array ( 35 37 43 ) 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)); 6 4hello2 2 4 6 4hello2 2 4 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$state = array ("Karnataka", "Goa", "Tamil Nadu", "Andhra Pradesh");echo (array_search ("Tamil Nadu", $state) ); False 2 True 1 False 2 True 1 ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What function computes the difference of arrays? diff_array array_diff diff_arrays arrays_diff diff_array array_diff diff_arrays arrays_diff ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays Which function returns an array consisting of associative key/value pairs? array_count() count() count_values() array_count_values() array_count() count() count_values() array_count_values() 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)); 024 060 120 010 024 060 120 010 ANSWER DOWNLOAD EXAMIANS APP