PHP pow() Function

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.

Example -

ParameterDescription
baseThe base to use
expThe exponent

Return Values

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.