The abs() function returns the absolute value of a number. 

Syntax:

abs(number)

Example:

<?php
    echo abs(9);  // 9
    echo abs(-3.7); //3.7
    echo  abs(3 + 5); //8
?>