|
|
PHP pow() - Math Functions
|
Tutorials » Php »
|
Topic |
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".
|
|
A Note |
Learn PHP programming language tutorial with simple and neat example. Hope you enjoy this free tutorial.
Do give us your valuable feedback and suggestions on this online tutorial. This is a Copyright Content.
|
|
|
|