PHP Math Constants | PHP M_E | PHP M_PI

Notes:

PHP Mathematical Constants & Functions:
- To perform mathematical calculations easily PHP provides various mathematical functions and constants

Mathematical constants E & PI:
- Mathematical constants like E (exponential constant) and PI are most frequently or most commonly found in mathematical equations

M_E: Number= 2.718281828459
Ex: echo M_E ;

M_PI: Number = 3.1415926535898
Ex: echo M_PI ;

pi():Number:
- Returns 3.1415926535898
Ex: echo pi();

Interview Questions:

1. PHP stands for ______________
a. Hypertext Preprocessor
b. Preprocessor Hypertext
c. Personal Home Processor
d. Personal Hypertext processor
Ans: a