How can PHP be used to add 5 days to the current date and handle weekends appropriately?

To add 5 days to the current date in PHP and handle weekends appropriately, you can use the `DateTime` class. By adding 5 days to the current date and checking if the resulting date falls on a weekend (Saturday or Sunday), you can adjust the date accordingly.

$currentDate = new DateTime();
$currentDate->modify('+5 days');

// Check if the resulting date is a Saturday or Sunday
if ($currentDate->format('N') >= 6) {
    $currentDate->modify('+2 weekdays'); // Skip to Monday
}

echo $currentDate->format('Y-m-d');