How to use pi in PHP

This article describe about pi() Function in PHP.
  • 1265

pi() Function

This function return the value of PI.

Syntax

pi()

 

Example

 

<html>
<body>
<?php
echo pi();
?>
</body>
</html>

 

Output


pi-php.jpg

You may also want to read these related articles Click here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.