The following foreach outputs a list of dates, however I do not want to display any that have a Saturday or a Sunday in the output. What I've got removes any output containing Saturday but I can't seem to remove the Sunday, I've tried using the or || in various places but with no luck. I'm formatting the date into this format - 'Monday 9 December 2019'
foreach($data['Appointments'] as $dates)
$readabledate = date("l j F Y ",strtotime(date($dates['Starttime'])));
if (strpos($readabledate, 'Saturday') === false) {
echo $readabledate; //lists all dates
}
}