The pow() function returns x raised to the power of y.
number pow ( number $base , number $exp )
Returns base raised to the power of exp.
Parameter | Description |
---|---|
base | The base to use |
exp | The exponent |
base raised to the power of exp. If both arguments are non-negative integers and the result can be represented as an integer, the result will be returned with integer type, otherwise it will be returned as a float.