adplus-dvertising
frame-decoration

Question

What will be the output of the following php code?
<?php
    $states = array("karnataka" => array
    ( "population" => "11,35,000", "capital" => "Bangalore"),
    "Tamil Nadu" => array( "population" => "17,90,000",
    "capital" => "Chennai") );
    echo $states["karnataka"]["population"];
    ?>

a.

karnataka 11,35,000

b.

11,35,000

c.

population 11,35,000

d.

karnataka population

Answer: (b).11,35,000

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output of the following php code?