ExamVeda
Login
Home
This question belongs to PHP Date And Timestamp
Date and Timestamp
?

What will be the output of the following PHP code?
<?php
    echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');
?>

Answer & Solution
Correct Answer: Option D
April has 30 days and the above date is 31 therefore Invalid is returned.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.