php get start of today
snippet in php

php get start of today

user8585

$beginOfDay = strtotime("today");
//to format
//$beginOfDay = date("Y-m-d H:i:s",strtotime('today'));