Easy Tutorial
❮ Func Mysqli Num Fields Func Filesystem Fscanf ❯

PHP exp() Function

PHP Math Reference Manual

Example

Returns 'e' raised to different powers:


Definition and Usage

The exp() function returns e raised to the power of x (e^x).

'e' is the base of the natural logarithm (approximately equal to 2.718282), and x is the exponent.


Syntax

Parameter Description
x Required. Specifies the exponent.

Technical Details

Return Value: 'e' raised to the power of x.
Return Type: Float
--- ---
PHP Version: 4+
--- ---
❮ Func Mysqli Num Fields Func Filesystem Fscanf ❯