Is there a way to determine which day of the year a specific date falls on using PHP?

To determine which day of the year a specific date falls on using PHP, you can use the `date()` function along with the `z` format character, which represents the day of the year (0 through 365). By passing the date in the correct format to the `date()` function with the `z` format character, you can retrieve the day of the year.

$date = "2022-09-15";
$day_of_year = date("z", strtotime($date));
echo "The date $date falls on day number $day_of_year of the year.";