Which one of the following is the right way to call a class constant, given that the class is mathFunction?

Question:Which one of the following is the right way to call a class constant, given that the class is mathFunction?

1.echo PI;

2. echo mathFunction->PI;

3.echo mathFunction::PI;

4.echo mathFunction=PI;


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!