What PHP function can be used to calculate the date of the next Saturday automatically?

To automatically calculate the date of the next Saturday in PHP, you can use the `strtotime` function in combination with the `date` function. By adding the necessary number of days to the current date, you can find the next Saturday.

$nextSaturday = date('Y-m-d', strtotime('next Saturday'));
echo $nextSaturday;