.


Divya

abs() Function in PHP


In php the abs() function is used to returns always the positive value of a number. Its give always integer number,escape float type.

Example

<!DOCTYPE html>
<html>
<body>
<?php
echo(abs(9.10) . "<br>");
echo(abs(-9.17) . "<br>");
echo(abs(-9) );
?>
</body>
</html>


.