<?php
$first_day_of_week = date('l');
$date = intval(date());
if ($date <= 7 && $first_day_of_week == 'Tuesday') {
// It's the first Monday of the month.
echo "this is the first Tuesday of the week";
}
?>
Fatal error: Uncaught ArgumentCountError: date() expects at least 1 argument, 0 given in /in/G2eCT:3
Stack trace:
#0 /in/G2eCT(3): date()
#1 {main}
thrown in /in/G2eCT on line 3
Process exited with code 255.