From 5ead0441ab3f30f7326ebdb452cfe8a47097178d Mon Sep 17 00:00:00 2001 From: Mattia Mascarello Date: Wed, 20 Nov 2024 16:50:59 +0100 Subject: [PATCH] added dates to text mode --- text.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/text.txt b/text.txt index b029e89..b00f449 100644 --- a/text.txt +++ b/text.txt @@ -11,6 +11,29 @@ IPA [matːˈia maskarˈɛllo] Born November 19, 2002 (age ) Studying Computer Science at the University of Turin (Italy) +format('d'); +$month = (int) $now->format('m'); + +if($month == 11 && $day == 19) { + echo "Happy Birthday to me!\n"; +} +else if($month == 12 && $day >= 18 && $day <= 27) { + echo "Merry Christmas!\n"; +} +else if($month == 1 && $day == 1) { + echo "Happy New Year!\n"; +} +else if($month == 4 && $day == 4){ + echo "Happy NATO Day!\n"; +} +else if($month == 6 && $day == 2){ + echo "Buona Festa della Repubblica!\n"; +} +else if($month == 5 && $day == 9){ + echo "Happy Europe Day!\n"; +} +?> Some pictures of me: https://mattiaturin.duckdns.org/images