Question: why use mktime in php?
Answer: The mktime() function is an inbuilt function in PHP which is used to return the Unix timestamp for a date. ... The hour, minute, second, month, day and year are sent as parameters to the mktime() function and it returns an integer Unix timestamp on success and False on error.