DateTime::getTimestamp

PHP 5 >= 5.3.0, PHP 7, PHP 8
DateTime::getTimestamp - Gets the Unix timestamp
Manual
Code Examples

Example #1 DateTime::getTimestamp example

Result: 1272509157
PHP Version:


Function DateTime::getTimestamp:

Date and Time Functions

Most used PHP functions