Home > PHP > Function > Math > pow()

pow()

pow - Exponential expression

Syntax

number pow (number $base, number $exp)

Arguments

  • base - The base to use
  • exp - The exponent

Description

Returns base raised to the power of exp.

Version

PHP 4, 5

Return value

base raised to the power of exp. If the result can be represented as integer it will be returned as type integer, else it will be returned as type float. If the power cannot be computed FALSE will be returned instead.