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"];

population 11,35,000
11,35,000
karnataka 11,35,000
karnataka population

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
There are three different kind of arrays:

Const array, Associative array, Multidimensional array
Numeric array, Associative array, Dimensional array
Numeric array, Associative array, Multidimensional array
Numeric array, String array, Multidimensional array

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What will be the output of the following PHP code?
$fruits = array ("mango", "apple", "peach", "pear");
$fruits = asort ($fruits);
printr ($fruits);

Array ( [0] => apple [1] => mango [2] => peach [3] => pear )
Array ( [1] => apple [0] => mango [3] => peach [2] => pear )
Error
Array ( [1] => apple [0] => mango [2] => peach [3] => pear )

ANSWER DOWNLOAD EXAMIANS APP