?
What will be the output of the following PHP code?
What will be the output of the following PHP code?
<?php
echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');
?>
<?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.
Join the Discussion
Login to post a comment or share your explanation.
Login