Easy Tutorial
❮ Func Filesystem Link Func Array Product ❯

PHP pow() Function

PHP Math Reference Manual

Example

Example of pow():


Definition and Usage

The pow() function returns x raised to the power of y.


Syntax

Parameter Description
x Required. Specifies the base to use.
y Required. Specifies the exponent.

Technical Details

Return Value: x raised to the power of y.
Return Type: Returns Integer if possible, otherwise Float.
--- ---
PHP Version: 4+
--- ---
PHP Changelog: PHP 4.0.6: Returns integer if possible. Previous versions only returned float. <br>PHP 4.2.0: No warnings are emitted on errors.
--- ---

❮ Func Filesystem Link Func Array Product ❯