PHP funkce pow()
06. 07. 2020Dostupnost ve verzích: PHP 4.0
Exponential expression
Parametry
Parametr | Datový typ | Výchozí hodnota | Poznámka |
---|---|---|---|
$base | number | The base to use | |
$exp | number | The exponent |
Návratové hodnoty
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.
Další zdroje
Jan Barášek Více o autorovi
Autor článku podniká jako fullstack senior developer v Praze. Spravuje 300 různě velkých webových projektů, fungujících dodnes. Během spolupráce nabral hluboké zkušenosti, které na tomto webu předává dál.
Rád vám pomůžu:
Kontakt Konzultace a služby Nabídka spolupráce