Calling the Built-in abs() Function : abs « Math « PHP
- PHP
- Math
- abs
Calling the Built-in abs() Function
<html>
<head><title>Calling the Built-in abs() function</title></head>
<body>
<div>
<?php
$num = -321;
$newnum = abs( $num );
print $newnum;
?>
</div>
</body>
</html>
Related examples in the same category