Easy Tutorial
❮ Func Misc Show Source Func Array Diff ❯

PHP sqrt() Function

PHP Math Reference Manual

Example

Returns the square root of different numbers:


Definition and Usage

The sqrt() function returns the square root of a number.


Syntax

Parameter Description
number Required. Specifies a number.

Technical Details

Return Value: Returns the square root of number, or NAN if number is negative.
Return Type: Float
--- ---
PHP Version: 4+
--- ---
❮ Func Misc Show Source Func Array Diff ❯