PHP pow() - Math Functions
What is pow Function?
Explanation
The "pow()" function is used to return power of a number.
Syntax:
pow(x,y)
In the above syntax "x" is the base and the "y" is the power using which the calculation is done.
Example :
<?php
echo pow(3,2)."<br />";
echo pow(8,2)."<br />";
?>
Result :
9
64
In the above example the 3 to the power of 2 is number "9", 8 to the power of 2 is "64".