Jump to: navigation, search

Php exp

From w3cyberlearnings

Contents

PHP function exp

This function calculates the exponent of e, and it returns the value e raised to the power of X and based on the natural logarithms.

Syntax exp

X is an integer.

exp(X);

Example 1

<?php

echo exp(2);
echo "<br/>";
echo exp(0);
?>

Output

7.3890560989307
1

Related Links


Navigation
Web
SQL
MISC
References