Complete PHP Math Reference
The abs() function returns the absolute value of a number.
| Parameter | Description |
|---|---|
| x | Required. A number. If the number is of type float, the return type is also float, otherwise it is integer |
The output of the code above will be:
Complete PHP Math Reference
Your message has been sent to W3Schools.