strtotime()
is a time function in php; its function is to convert any date and time in the form of a string into the corresponding Unix timestamp.
The date
function is used to obtain the current system date without parameters
PHP comparison time is generally converted into a timestamp to compare.
Use the strtotime function to turn the time into a timestamp.