Return the value of PI in PHP

Description

The following code shows how to return the value of PI.

Example


  
<?php
    echo(pi());
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Development »




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