Get the square root of a number

This forum covers all minor versions of PHP 7
Post Reply
User avatar
Administrator
Site Admin
Posts: 1725
Joined: Thu Mar 22, 2018 10:19 am

Get the square root of a number

Post by Administrator » Fri Aug 24, 2018 10:49 am

You can get the square root of a number in PHP with

Code: Select all

sqrt
function

Code: Select all

echo sqrt(9); // 3

http://php.net/manual/en/function.sqrt.php

Post Reply