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 • Principal Software Engineer @Chargebee 👨‍💻• I write about web development & behinds the scenes of startup/side projects that I'm building

© 2022 Nesin Technologies LLP