Calculate exponential value in PHP

Description

The following code shows how to calculate exponential value.

Example


  /*  w w w.  j a  v a 2s.  c o m*/
<?php
   echo(pow(2,4) . "<br>");
   echo(pow(-2,4) . "<br>");
   echo(pow(-2,-4) . "<br>");
   echo(pow(-2,-3.2));
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Development »




Environment
Error
Hash
Include
Locale
Math
Network
Output
Reflection
PHP Regular Expressions