Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Object Oriented PHP – Class Constants – Full PHP 8 Tutorial

37.6K views on YouTube

In the first section of the course, you learned how to work with constants in PHP. In this lesson, you will learn how to work with class constants, how to access them using the scope resolution operator & so on. I also show a good use case for it with a real example.

SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
👍 Smash the like button
🤝 Subscribe to the channel & turn the notifications on
💬 Post comments, any feedback is greatly appreciated
⭐ Become a Patreon: https://www.patreon.com/programwithgio
THANK YOU!

LESSON 2.6
Course Outline – https://github.com/ggelashvili/learnphptherightway-outline
Course Playlist – https://www.youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe-

RESOURCES
Video About Constants – https://youtu.be/6JtP8xk1U_k
PHP 8.1 Enums – https://wiki.php.net/rfc/enumerations