Scope Resolution Operator - PHP - P57

Опубликовано: 14 Июнь 2020
на канале: Dino Cajic
716
14

In PHP, the scope resolution operator, or the double colon ::, allows you to access constants, static properties and methods, and overridden properties and methods. If you're accessing, for example, a constant outside of the class, you would append the double colon operator to the instantiated object, or even the class name. If you're accessing the constant or overridden property or method inside of the class, you would use either self or parent. Self is used to access the constant inside the class itself and parent is used to access the inherited constant, or overridden property or method.

Read the full article on my website
https://www.dinocajic.com/php-scope-r...

Code for this tutorial
https://github.com/dinocajic/php-7-yo...

Full Code
https://github.com/dinocajic/php-7-yo...

PHP Playlist
   • PHP Tutorial  

--
Dino Cajic
Author and Head of IT

Homepage: https://www.dinocajic.com
GitHub: https://github.com/dinocajic
Medium:   / dinocajic  
Instagram:   / think.dino  
LinkedIn:   / dinocajic  
Twitter:   / dino_cajic  

My Books
An Illustrative Introduction to Algorithms
https://www.amazon.com/dp/1686863268

Laravel Excel: Using Laravel to Import Data
https://amzn.to/4925ylw

Code Along With Me - PHP: From Basic to Advanced PHP Techniques
https://amzn.to/3M6tlGN


На этой странице сайта вы можете посмотреть видео онлайн Scope Resolution Operator - PHP - P57 длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Dino Cajic 14 Июнь 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 716 раз и оно понравилось 14 зрителям. Приятного просмотра!