1
What will be the output of the following PHP code?
<?php
echo (checkdate(4,31,2010) ? 'Valid' : 'Invalid');
?> Answer & Solution
Answer: Option
D
Solution:
April has 30 days and the above date is 31 therefore Invalid is returned.