The PHP hypot() function calculates the hypotenuse of a right-angle triangle.
Syntax
hypot(x,y)
Parameters
Parameter | Description |
---|---|
x | Specifies the length of the first side (required) |
y | Specifies the length of the second side (required) |