Question
Regarding the timestamp issue
Solution
I encountered a time stamp problem while developing a shopping mall project. I will describe it now and hope you can help solve it
The data segment of the data table is defined as int【11】
The time I want to read now is today’s timestamp. For example, the amount of data added today is XX. Judging based on the timestamp, I am confused
Reference answer
mktime function
Reference answer
date('Y-m-d',time()); //Convert seconds to time
strtotime('2008-8-5'); //Convert time to seconds
Reference answer
Thank you upstairs