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');
?>
A. TRUE
B. FALSE
C. Valid
D. Invalid
Answer: Option D
Solution(By Examveda Team)
April has 30 days and the above date is 31 therefore Invalid is returned.Related Questions on Date and Timestamp
A. TRUE
B. FALSE
C. Valid
D. Invalid
The date() function returns ___ representation of the current date and/or time.
A. Integer
B. String
C. Boolean
D. Float
If the format is F then which one of the following will be returned?
A. Complete text representation of month
B. Day of month, with leading zero
C. Daylight saving time
D. Day of month, without zeros
Join The Discussion