How To Generate Today Unix Timestamp in PHP

March 15, 2016

Here’s little snippet on how to do it

$today_start_ts = strtotime(date('Y-m-d', time()). '00:00:00'); echo $today_start_ts;

👋 I'm Ashik Nesin • Sr. Frontend Engineer @Chargebee 👨‍💻• I write about modern Javascript & building web apps

© 2021 Nesin Technologies LLP