strtotime php get current month code example
Example 1: php start of day epoch
$beginOfDay = strtotime("today", $timestamp);
$endOfDay = strtotime("tomorrow", $beginOfDay) - 1;
Example 2: php get start of today
$beginOfDay = strtotime("today");
//to format
//$beginOfDay = date("Y-m-d H:i:s",strtotime('today'));