Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
$m = '10';
$day_in_month = date('t', mktime(0, 0, 0, $m));
$start = date('Y-'. $m . '-01');
$stop = date('Y-'. $m . '-' .$day_in_month);
print_r($stop);
?>