I have 3 variables for a day and time of the week stored in an array :
$shift['day'];
$shift['hour'];
$shift['meridian'];
All 3 together, respectively output something like :
Friday 10 PM
DATE is not being used at all, just DAY and TIME and it's obviously not stored as a timestamp.
How can I check if this DAY and TIME has already passed THIS week?
So for example :
$today = date("l"); // Get current day "Monday"
$hour = date("g"); // Get current hour "3"
$meridian = date("A"); // Get current meridian "PM"
Will get me the current values ready to compare to my variables but I'm lost at how the logic would work to determine if my time has already passed this week or not?
Any help greatly appreciated.