PHP pi

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

PHP : pi() function

Description

The pi() function is used to get the value of PI.

Version

(PHP 4 and above)

Syntax

pi()

Return value

The value of pi .

Value Type : Float.

Pictorial Presentation

php-math-abc()

Example :

  1.    

Output :

3.1415926535898