OOP PHP: What is the Double Colon in Objects/Classes for?
Friday, January 16th, 2009
I happen to be the only PHP programmer that I know, so it’s hard to ask your buddy what the heck that :: is used for in some OO PHP programs. I know you could post it on a forum and get the answer, but I never did. And Google wasn’t really forth coming when you put :: in a search. Finally I found it in the PHP documentation: check out Scope Resolution Operator (::). In short, it’s used to access Static or Constant members of a class. Here’s a brief example:
Popularity: 14%


