HubsInfo Network
Login or Register to remove ads! You're browsing our forum and website as a Guest meaning you can only see a portion of the forum in read-only mode.
PHP MySQL Linux Material Design Web Hosting Online Games SimCity BuildIt

Check if current month is October in PHP


Check if current month is October in PHP
« on: October 14, 2020, 03:21:42 AM »
Check if current month is October in PHP

[INFO!] It's good for when you want to check for Halloween period.

Code: [Select]
<?php
$monthOctober 
date('m');
if(
$monthOctober == 10) {
echo 
"October is the tenth month of the year in the Julian and Gregorian Calendars and the sixth of seven months to have a length of 31";
} else {
echo 
"Bye Bye October!";
}
?>

« Last Edit: October 14, 2020, 03:23:26 AM by Remix »
 



Linux Ubuntu Guides Linux games - Lutris.net