Which one of the following is the right way to call a class constant, given that the class is mathFunction?
A
echo PI;
B
echo mathFunction->PI;
C
echo mathFunction::PI;
D
echo mathFunction=PI;
Correct Answer: echo mathFunction::PI;
The Scope Resolution Operator “::” is a token that allows access to static, constant, and overridden properties or methods of a class.