PHP Arrays Which of the following are correct ways of creating an array?1. state[0] = “karnataka”;2. $state[] = array(“karnataka”);3. $state[0] = “karnataka”;4. $state = array(“karnataka”); 2 and 3 2, 3 and 4 3 and 4 Only 1 2 and 3 2, 3 and 4 3 and 4 Only 1 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); Edmund Susan Lucy Peter Edmund Susan Lucy Peter ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What function computes the difference of arrays? diff_array diff_arrays arrays_diff array_diff diff_array diff_arrays arrays_diff array_diff 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
PHP Arrays Assume you would like to sort an array in ascending order by value while preserving key associations. Which of the following PHP sorting functions would you use? ksort() usort() krsort() sort() asort() ksort() usort() krsort() sort() asort() ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$a = array("a"=>"red", "b"=>"green", "c"=>"blue");echo array_shift($a);print_r ($a); red blue green none of the mentioned red blue green none of the mentioned ANSWER DOWNLOAD EXAMIANS APP