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

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What will be the output of the following PHP code?
$a=array("A","Cat","Dog","A","Dog");
$b=array("A","A","Cat","A","Tiger");
$c=array_combine($a,$b);
print_r(array_count_values($c));

Array ( [A] => 2 [Cat] => 1 [Dog] => 4 [Tiger] => 1 )
Array ( [A] => 6 [Cat] => 1 [Dog] => 2 [Tiger] => 1 )
Array ( [A] => 5 [Cat] => 2 [Dog] => 2 [Tiger] => 1 )
Array ( [A] => 2 [Cat] => 2 [Dog] => 1 [Tiger] => 1 )

ANSWER DOWNLOAD EXAMIANS APP

PHP Arrays
What will be the output of the following PHP code?
$fruits = array ("apple", "mango", "peach", "pear", "orange");
$subset = array_slice ($fruits, 2);
print_r ($subset);

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

ANSWER DOWNLOAD EXAMIANS APP