PHP pi() Function Example

PHP pi() Function Example


Posted in : PHP Posted on : January 31, 2011 at 6:09 PM Comments : [ 0 ]

The pi() function is use to get the value of pi. It return the value of pi.

PHP pi() Function Example:

The pi() function is use to get the value of pi. It return the value of pi.

Syntax:

pi()

Example:

<?php
$value_of_pi = pi();
echo "The value of pi is : " . $value_of_pi;
?>

After running this example the output is:

Output:

The value of pi is : 3.1415926535898

Download Example Code

Go to Topic «PreviousHomeNext»

Your Comment:


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

 
Tutorial Topics