"> What will be the output of the following PHP code ?<?php$City

Home » PHP » PHP Echo/Print » Question
  1. What will be the output of the following PHP code ?
    <?php
    $City = array("Chennai", "Mumbai", "Noida");
    print $City[2];
    ?>
    1. Chennai
    2. Mumbai
    3. Noida
    4. Error
    5. None of these
Correct Option: C

Print statement can be used to output a specific array member.



Your comments will be displayed only after manual approval.