PHP strtotime() is an inbuilt function that is used to convert an English textual date-time description to a UNIX timestamp. The function accepts a string parameter in English which represents the description of date-time. For e.g., “now” refers to the current date in English date-time description.

PHP strtotime()

See the following syntax of strtotime() function.

strtotime(time, now);

The time parameter specifies a date/time string.

The now parameter specifies the timestamp used to calculate the returned value. It is an optional parameter.

#php #php strtotime #unix

PHP Strtotime Example | PHP strtotime() Function Tutorial
1.60 GEEK