if you want a custom square root. Use pow() or powLogExp function (custom).
example:
100 root 3. In math is same as 1 divide with 3 (important)
<?php
$root = 1/3;
echo pow(1000, $root);
echo powLogExp(1000, $root);
function powLogExp($num1, $num2){
$num3 = log($num1) * $num2;
return exp($num3);
}
?>
With this, you might using more complex 'root'
reference: counting math using log