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
$day_in_month = date('t', mktime(0, 0, 0, 12));
print_r($day_in_month);
$day_in_month = date($day_in_month);
$start = date('2022-12' . '-01');
$stop = date('2022-12' . '-' .$day_in_month);
//$period_manth = getDates($start, $stop);
//array_push($period_manth, date(2022-12 . '-' .$day_in_month));
print_r($period_manth . ' ');
print_r($start . ' ');
print_r($stop . ' ');
$d = '2022-12';
print_r(substr($d, 5));
?>