Name

sqrt()

Synopsis

    float sqrt ( float num )
    To obtain the square root of a number, use the sqrt() function 
, which takes
    as its parameter the value you wish to calculate the square root of:
    print sqrt(25);
    print sqrt(26);

That will output 5 as the result of line one, then 5.0990195135928 for line two.

Get PHP in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.