How to use exp in PHP

This article describe about exp() function in PHP.
  • 1311

exp() function

This function return the Ex  value. Where E is a Euler constant and x is passed number.

Syntax

exp(x)

 

Parameter Description
x define a number.

Example

<html>
<body>
<?php
echo(exp(2) . "<br />");
echo(exp(-2) . "<br />");
echo(exp(6) . "<br />");
echo(exp(12))
?>
</body>
</html>

 

Output


expphp.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.