I think an if, else statement would be the way to go, but I'm not sure exactly. My PHP knowledge is limited to tweaking wordpress files. Any help regarding this would be appreciated.
P.S: This question is not regarding wordpress, but php in general
I think an if, else statement would be the way to go, but I'm not sure exactly. My PHP knowledge is limited to tweaking wordpress files. Any help regarding this would be appreciated.
P.S: This question is not regarding wordpress, but php in general
You are in the right way.You have to check IF current date is IN ARRAY of dates. To help you,i provide the PHP in_array documentation link.
I hope this help.
[EDIT]
A short example, if you want to output OK if a fruit is in the fruit list.
<?php
$fruit = 'bannana'; // This corresponds to your current date
$fruitList = ['apple','orange','bannana']; //this corresponds to your date list
//IF $fruit is in the array $fruitList
if (in_array($fruit, $fruitList)) {
echo 'OK';
} else {
echo 'NOT OK';
}