Which PHP function returns the square root of a number?

  • sqrt()
  • pow()
  • rand()
  • floor()
The sqrt() function in PHP returns the square root of a number. It accepts a single argument, the number for which you want to calculate the square root, and returns the square root as a float. This function is useful when you need to find the square root of a number in mathematical calculations. Learn more: https://www.php.net/manual/en/function.sqrt.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *