PHP pow() function with example

 16 - Mar - 2022
 XpertPhp
 42

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