PHP Arrays There are three different kind of arrays: Numeric array, String array, Multidimensional array Const array, Associative array, Multidimensional array Numeric array, Associative array, Multidimensional array Numeric array, Associative array, Dimensional array Numeric array, String array, Multidimensional array Const array, Associative array, Multidimensional array Numeric array, Associative array, Multidimensional array Numeric array, Associative array, Dimensional array ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code?$fruits = array ("apple", "orange", "banana");echo (next($fruits));echo (next($fruits)); orangeorange appleorange orangebanana appleapple orangeorange appleorange orangebanana appleapple ANSWER DOWNLOAD EXAMIANS APP
PHP Arrays What will be the output of the following PHP code ?$city_west = array("NYC", "London");$city_east = array("Mumbai", "Beijing");print_r(array_replace($city_west, $city_east)); Array ( [1] => NYC [0] => London ) Array ( [0] => NYC [1] => London ) Array ( [1] => Mumbai [0] => Beijing ) Array ( [0] => Mumbai [1] => Beijing ) Array ( [1] => NYC [0] => London ) Array ( [0] => NYC [1] => London ) Array ( [1] => Mumbai [0] => Beijing ) Array ( [0] => Mumbai [1] => Beijing ) 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? sort() asort() krsort() ksort() usort() sort() asort() krsort() ksort() usort() 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 Jack Sam is the brother of Bob and Bob) Error Sam is the brother of Jack and Bob) Sam is the brother of Bob and Jack Sam is the brother of Bob and Bob) Error Sam is the brother of Jack and Bob) 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"]; karnataka 11,35,000 11,35,000 population 11,35,000 karnataka population karnataka 11,35,000 11,35,000 population 11,35,000 karnataka population ANSWER DOWNLOAD EXAMIANS APP