HubsInfo Network
You're browsing our forum as a Guest meaning you can only see a portion of the forum in read-only mode. To view all forum nodes and be able to create threads/posts please register or log-in.
PHP MySQL Linux Material Design Web Hosting Online Games SimCity BuildIt

Check if current month is October in PHP

0 Members and 1 Guest are viewing this topic.

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