Complete PHP Math Reference
The sqrt() function returns the square root of a number.
| Parameter | Description |
|---|---|
| x | Required. A number |
Note: The sqrt() function will return -1.#IND if the parameter x is a negative number.
In this example we will get the square root of different numbers:
The output of the code above will be:
Complete PHP Math Reference
Your message has been sent to W3Schools.