Home » PHP » PHP Arrays » Question
  1. What will be the output of the following PHP code?
    <?php
    $Country = array("India", "England", "USA");
    echo "I like " . $Country[2] . ", " . $Country[1] . " and " . $Country[0] . ".";
    ?>
    1. Error
    2. Nothing
    3. India England USA
    4. I like USA, England and India.
    5. None of these
Correct Option: D

The order of elements defined.



Your comments will be displayed only after manual approval.