accessing a class method in php
|
|
|
Question / Problem
|
What’s the difference between accessing a class method via -> and via ::?
|
Solution
|
:: is allowed to access methods that can perform static operations, i.e. those, which do not require object initialization.
|
Applies to |
|
PHP
|
Rank It |
|