Example Returns the value of pi: <?phpecho(pi());?> Definition and usage The pi() function returns the value of pi, PI. Tip: The named constants M_PI and pi() produce the same result. grammar pi(); technical details Return value: 3.1415926535898 Return type: Float PHP version: 4+