PHP pi() - Math Functions

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.

PHP Topics


Ask Questions

Ask Question