What is the best way to add days to a date in PHP?

To add days to a date in PHP, you can use the `DateTime` class along with the `add()` method. This method allows you to add a specified number of days to a given date. Simply create a new `DateTime` object with your initial date, then use the `add()` method to add the desired number of days.

$date = new DateTime('2022-01-01');
$date->add(new DateInterval('P7D')); // add 7 days
echo $date->format('Y-m-d'); // output: 2022-01-08