PHP abs() Function
Complete PHP Math Reference
Definition and Usage
The abs() function returns the absolute value of a number.
Syntax
| Parameter |
Description |
| x |
Required. A number. If the number is of type float, the
return type is also float, otherwise it is integer |
Example
<?php
echo(abs(6.7) . "<br />");
echo(abs(-3) . "<br />");
echo(abs(3));
?>
|
The output of the code above will be:
Complete PHP Math Reference
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|