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 population
karnataka 11,35,000
population 11,35,000

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What will be the output of the following PHP code?
$a1 = array("a" => "red", "b" => "green", "c" => "blue", "d" => "yellow");
$a2 = array("e" => "red", "f" => "green", "g" => "blue", "h" => "orange");
$a3 = array("i" => "orange");
$a4 = array_combine($a2, $a3);
$result = array_diff($a4, $a2);
print_r($result);

Array ( [d] => yellow [h] => orange )
Array ( [d] => yellow )
Array ( [h] => orange )
Array ( [i] => orange )

ANSWER DOWNLOAD EXAMIANS APP