So as you expect am a newbie in php and classes.. so i found that this symbol is used in a class. But didnt understand whats this used for( :: )..
So am expecting helps..
regards..
Shajin
Any body know about :: key whats for..
Moderator: General Moderators
Re: Any body know about :: key whats for..
It is the Scope Resolution Operator.
Simply it allows you access to static members of a class without instantiating an object.
Cheers,
Dave.
Simply it allows you access to static members of a class without instantiating an object.
Cheers,
Dave.
Re: Any body know about :: key whats for..
If you have a class that extends another class, and re-declare a function I think this operator allows you to choose to use the method from the class being extended rather than the re-declared method in the new class