Php program to print the absolute number (abs)

Php program to print the absolute number (abs). Using this program we can print the absolute number in php program. Absolute value refers to a number’s distance from zero on the number line, without taking direction into account. A number’s absolute value can never be negative. Consider the following examples. The number 5 has an absolute value of 5. The difference between 5 and 0 is 5 units.

<?php 
echo (abs(-100)."<br/>");
?>

 

Output:

100