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
[ 0 ] Comments