Home » PHP » PHP Date/Time » Question
  1. What will be the output of the following PHP code?
    <?php
    echo (checkdate(6,30,2018) ? 'Valid' : 'Invalid');
    ?>
    1. 6,30,2018
    2. Valid
    3. Invalid
    4. Error
    5. None of these
Correct Option: B

June has 30 days and the above date is 30 therefore valid is returned.



Your comments will be displayed only after manual approval.