PHP mktime() FunctionLast Updated : 17 Mar 2025 The PHP mktime() function is used to find the day of that particular date. It returns the Unix timestamp for a date. SyntaxParameters
ReturnThe mktime() function returns the Unix timestamp of the arguments given. This function returns FALSE, if the arguments are invalid. Example 1Output: Aug 6, 2018 was on a Monday. Example 2Output: Jan-05-2002 Feb-01-2002 Jan-01-2001 Jan-01-1999 Example 3Output: Last day in Feb 2000 is: 29 Last day in Feb 2000 is: 29 Next TopicPhp-strftime-function |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India