Complete PHP Math Reference
The hypot() function returns the length of the hypotenuse of a right-angle triangle.
| Parameter | Description |
|---|---|
| x | Required. Length of side x |
| y | Required. Length of side y |
Tip: The hypotenuse of a right-angle triangle with sides of length x and y is equivalent to sqrt(x*x + y*y).
The output of the code above will be:
Complete PHP Math Reference
Your message has been sent to W3Schools.