What is the PHP function used to calculate roots of numbers?

To calculate roots of numbers in PHP, you can use the `pow()` function. The `pow()` function in PHP calculates the value of a number raised to the power of another number, which can be used to find roots. For example, to calculate the square root of a number, you can raise the number to the power of 0.5. Similarly, to calculate the cube root of a number, you can raise the number to the power of 1/3.

// Calculate the square root of a number
$number = 16;
$squareRoot = pow($number, 0.5);
echo "Square root of $number is: $squareRoot";

// Calculate the cube root of a number
$cubeRoot = pow($number, 1/3);
echo "Cube root of $number is: $cubeRoot";