|
|
PHP pi() - Math Functions
|
Tutorials » Php »
|
Topic |
What is pi Function?
|
|
Explanation |
|
The "pi()" function returns the value of pi.
Syntax:
pi()
Example:
<?php
echo pi();
?>
Display:
3.1415926535898
In the above example the function returns a float value for PI.
|
|
A Note |
Learn PHP programming language tutorial with simple and neat example. Hope you enjoy this free tutorial.
Do give us your valuable feedback and suggestions on this online tutorial. This is a Copyright Content.
|
|
|
|