For new code, DateTimeImmutable makes date arithmetic easier to read than repeatedly building timestamps with mktime().
\09= date(\"m\");
30= date(\"d\");
2026= date(\"Y\");
for($i=0; $i<=20; $i++){
echo date('d-M-Y:D',mktime(0,0,0,$m,($de-$i),$y));
echo \"<br>\";
}
All Basic Codes
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.