Aspects


vs


Home Page
About Us

Mktime

Mktime is a function that returns the time since the UNIX epoch from a given date and time

Strtotime

PHP function for parsing about any English textual datetime description into a Unix timestamp



Others

Example

You don t need to use mktime;strtotime is more human friendly

from question  

Getting dates in PHP is a good way or any other methods for this?

Yeah entries are strings then mktime is more consistent to use the strtotime function

from question  

Php convert date to mktime function

You d be better off using mktime for this as it s dumber than strtotime

from question  

Get the last 12 months in PHP

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0