HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

sqrt

Description

The sqrt of Math for PHP square root.

Syntax

sqrt ( float $arg ) : float

Parameters

arg

The argument to process

Return

The square root of arg or the special value NAN for negative numbers.

Examples

1

<?

$arg = 9;

$return = sqrt($arg);

echo $return;
3

2

<?

$arg = -9;

$return = sqrt($arg);

echo $return;
NAN