Source Code:
(back to article)
<?php $number = -5; // Get the absolute value of the number using the abs() function $absolute_number = abs($number); // Output the absolute value of the number echo $absolute_number; ?>
Result:
Report an issue