$list=array();
$d = 13;
$year = 2019;
for($m=1; $m<=12; $m++)
{
$time=mktime(12, 0, 0, $m, $d, $year);
if (date('m', $time)==$m)
$list[]=date('D-d-m-Y', $time);
}
In this you can specify a special number and release all days of the year with the same number. For example, I wanted to pour out all 13 of the month. (if you want to find every Friday the 13th that you should use)
source
share