exp()

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:

us
Visit us
code
Hide code
Code
Output
Hide output
Hide output
Loading...

All contributors

Looking to contribute?

Learn PHP on Codecademy