Math Exp In PHP
In this article I am going to explain PHP math exp function.
Introduction
It calculates the exponent of e (e is the base of the natural number system of logarithms, or approximately 2.718282).
Syntax
Parameters in Exp function
It contains one parameter; it is:
Parameter |
Description |
number |
It specifies a number. |
Example of Exp function
<?php
echo ("exp of 0 is ".exp(0)."</br>");
echo ("exp of -2 is ".exp(-2)."</br>");
echo ("exp of 3 is ".exp(3)."</br>");
echo ("exp of 3.3 is ".exp(3.3)."</br>");
?>
Output
