What Will Be The Output Of The Following Php Codep Pre Langphp #33
What will be the output of the following PHP code?</p> <pre><code class="language-php" line="1"> <?php $states = array("Karnataka" => array ("population" => "11,35,000", "capital" => "Bangalore"), "Tamil Nadu" => array( "population" => "17,90,000", "capital" => "Chennai") ); echo $states["Karnataka"]["population"]; ?> </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs107 PHP: Hypertext Preprocessor. It can also be found in gs gs107 PHP Array - PHP Array - Quiz No.1.
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"]; ?>
Karnataka 11,35,000
11,35,000
population 11,35,000
Karnataka population