Syntax of abs function
int abs(int number)
float abs(float number)
Returns the absolute value of number in the same type (float or integer) as the argument
Example of abs function
<?php
echo abs(-4.2); // 4.2 (double/float)
echo abs(5); // 5 (integer)
echo abs(-5); // 5 (integer)
?>