Scope Resolution Operator - PHP - P57

Published: 14 June 2020
on channel: 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


On this page of the site you can watch the video online Scope Resolution Operator - PHP - P57 with a duration of hours minute second in good quality, which was uploaded by the user Dino Cajic 14 June 2020, share the link with friends and acquaintances, this video has already been watched 716 times on youtube and it was liked by 14 viewers. Enjoy your viewing!