Accessing class methods in PHP
It is possible to access class methods in PHP by two different ways. First one is to use double colons and second option is to use dash with an arrow pointing to the right.
What is the difference between two?
Arrow pointing to the right will invoke a function of the instantiated object, where double colons will use a class method.
Comments
Post a Comment