PHP Math Functions | min() | max()

Notes:

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

min(value1:number, value2:number, ....):number
- Returns the minimum of given values.
Ex: echo min(1,2,3 ,4,5); // 1

max(value1:number, value2:number, ....):number
- Returns the maximum of given values.
Ex: echo max(1,2,3 ,4,5); // 5

Interview Questions:

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