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;
Answer:C
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;