How can the use of intval or int in PHP help in accurately converting negative minutes to hours?

When converting negative minutes to hours in PHP, using `intval` or `int` can help accurately handle the conversion by ensuring that only the integer part of the result is considered. This is important because negative minutes should still be converted to negative hours, and using these functions will discard any decimal part of the result.

$minutes = -120;
$hours = intval($minutes / 60); // Using intval to convert negative minutes to negative hours
echo $hours; // Output: -2