PHP function pow()

Availability in PHP 4.0

Exponential expression

Parameters

Parameter Data type Default value Note
$base number not The base to use
$exp number not The exponent

Return values

number

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.

Other resources

Official pow documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.