"> What will be the output of the following code? If say date

Home » PHP » PHP Date/Time » Question
  1. What will be the output of the following code? If say date is 30/05/2018.
    <?php
    echo "Today is ".date("F d, Y")
    ?>
    1. Today is May 30, 2018
    2. Error
    3. Nothing
    4. 30/05/2018
    5. None of these
Correct Option: A

F is the parameter for complete text representation of month, d for day of month, and Y for 4 digit representation of year.



Your comments will be displayed only after manual approval.