Is using the * -1 method a reliable way to convert a negative number to a positive one in PHP?

Using the * -1 method is a reliable way to convert a negative number to a positive one in PHP. This method simply multiplies the negative number by -1, which changes its sign to positive. It is a quick and straightforward solution to convert negative numbers to positive ones in PHP.

$negativeNumber = -5;
$positiveNumber = $negativeNumber * -1;

echo $positiveNumber; // Output: 5