what is the difference between -> and ::
Posted: Mon Jan 17, 2011 12:50 am
so, what is the difference between -> and :: ??
thanks
thanks
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
The scope resolution operator has the following uses:
It gives access to overridden properties or methods of a parent class.
It is used to call the static methods and properties of a class.
It gives access to class constants.
It is the conventional way of referring to a class method or property in documentation.