- date: documentation ( source)
<?php
$first_day_of_week = date('l');
$date = intval(date('j'));
echo $date;
if ($date <= 7 && $first_day_of_week == 'Monday') {
// It's the first Monday of the month.
echo "this is the first Tuesday of the week";
}
?>