Sail E0 Webinar
Question
Which one of the following is the right way to call a class constant, given that the class is mathFunction?
Options:
A .  echo PI;
B .  echo mathFunction->PI;
C .  echo mathFunction::PI;
D .  echo mathFunction=PI;
Answer: Option C


echo mathFunction::PI;



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers