abs()` function. Here's an example :<?php
$number = -5;
$absolute = abs($number);
echo "The absolute value of $number is $absolute\n";
?>The absolute value of -5 is 5$number` is defined with the value `-5`. The `abs()` function is called with `$number` as an argument to find the absolute value of `-5`, and the result is stored in the variable `$absolute`.$absolute` is then output using `echo`.