PHP Arrays What functions count elements in an array?1. count2. Sizeof3. Array_Count4. Count_array Option 1 and 2 Option 3 and 4 Option 2 and 4 Option 1 and 4 Option 1 and 2 Option 3 and 4 Option 2 and 4 Option 1 and 4 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? asort() sort() krsort() usort() ksort() asort() sort() krsort() usort() ksort() 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 78 19 NULL 5 78 19 NULL 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?$a = array("a"=>"red", "b"=>"green", "c"=>"blue");echo array_shift($a);print_r ($a); red green blue none of the mentioned red green blue none of the mentioned ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following php code?$states = array("karnataka" => array( "population" => "11,35,000", "captial" => "Bangalore"),"Tamil Nadu" => array( "population" => "17,90,000","captial" => "Chennai") );echo $states["karnataka"]["population"]; 11,35,000 karnataka 11,35,000 population 11,35,000 karnataka population 11,35,000 karnataka 11,35,000 population 11,35,000 karnataka population ANSWER DOWNLOAD EXAMIANS APP