Examveda
Examveda

What will be the output of the following PHP code?
<?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.

This Question Belongs to PHP >> Date And Timestamp

Join The Discussion

Related Questions on Date and Timestamp