Beside having the usage in methods, the static keyword is also applicable for utilization with a class property. When a property or a method is defined with the static keyword, it needs to called or invoked using the actual PHP class name, otherwise the properties and the methods will be rendered to be inaccessible outside the class's scope. Once we use the class name directly followed by the scope resolution operator, we can then gain access to the public methods and properties. Likewise, a property, after being called statically, can then act like any other variable and hence can be assigned with a value. Along this new concept, we will explore few conceptual ideas about namespacing our class and looking at the output produced by our container method by inspecting the page elements.
On this page of the site you can watch the video online Static Properties & Namespaces | Object-Oriented PHP | Section-1 | Part-7 with a duration of hours minute second in good quality, which was uploaded by the user Nafis's Classroom 15 May 2015, share the link with friends and acquaintances, this video has already been watched 114 times on youtube and it was liked by 0 viewers. Enjoy your viewing!