exp()

MMOOAAZZ's avatar
Published Jun 23, 2023
Contribute to Docs

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

Syntax

exp($x)
  • $x: Specifies the exponent that e will be raised to.

Codebyte Example

The following codebyte illustrates the use of the exp() function with a variety of arguments:

Code
Output
Loading...

All contributors

Contribute to Docs

Learn PHP on Codecademy