PHP pow() function with example
In this article, We will explain to you PHP pow() function with example.
PHP pow() function
The pow() function is a built-in function of PHP. which is used to raises the first argument to the second argument and returns the result. so you can see our PHP math Function example.
Syntax
pow(x,y);
Example
<?PHP
echo pow(5,3);
echo "
";
echo pow(-5,3);
?>
Output
125
-125
Reference: PHP pow() function