What considerations should be made when including minutes in time-based PHP functions?

When including minutes in time-based PHP functions, it is important to ensure that the minutes are properly formatted to avoid errors. One common mistake is not converting minutes to seconds when using functions like strtotime(). To solve this, multiply the number of minutes by 60 to get the equivalent number of seconds before passing it to the function.

// Incorrect way of including minutes
$minutes = 30;
$timestamp = strtotime("+ $minutes minutes"); // This will not work correctly

// Correct way of including minutes
$minutes = 30;
$seconds = $minutes * 60;
$timestamp = strtotime("+ $seconds seconds");