I want to check if a date value is in an array. This is what I did:
$day = array('Monday','Tuesday','Wednesday');
if(date('l') === $day){
//Do your thing
}
I guess I'm missing something or not fully understand why this doesn't work.
The idea is to make this statement false
if the date is past Thuesday until Sunday. This was the only way I could think of because this is allready in a loop.