Home >Backend Development >PHP Tutorial >PHP checks whether it is a legal time format regular_PHP tutorial
The following summarizes several ways to use php to verify whether the date entered by the user is the correct date. Friends in need can refer to it.
The checkdate() function verifies a Gregorian date.
Example
The code is as follows
|
Copy code
|
||||||||
var_dump(checkdate(12,31,2000)); bool(true)
Regular date
|
The code is as follows | Copy code
|