Need Assistance?

support@tutorialshub.in

Advanced OOP & Architecture

Static Methods, Properties & Constants

ADVERTISEMENT
PHP Free Lesson
5 min read
ADVERTISEMENT

static methods and class const values belong to the class itself rather than an object instance, so you call them using the scope resolution operator (ClassName::method()).

ADVERTISEMENT
Hi, I'm Tuby! Here to help you