php datetime object get unix timestamp

32

php datetime object get unix timestamp -

$date = new DateTime();
echo $date->getTimestamp();

Comments

Submit
0 Comments