static variables and functions in classes?
View Single Post
02-18-2008, 02:16 PM
Join Date: Sep 2007
Originally Posted by
I as well am kinda new to the OOP in PHP 5, so what does ClassName
$property do? (the dots honey)
Like sjaq said, It returns the property value and its valid in PHP4+. The reason not to use just 'ClassName::Something' is that from PHP5 they are constants.
The double colon or 'Paamayim Nekudotayim' (Double colon in hebrew, PHP only) is simply the way of calling static methods, theres some information about it on the PHP manual here:
PHP: Scope Resolution Operator (::) - Manual
View Public Profile
Send a private message to Kalle
Visit Kalle's homepage!
Find More Posts by Kalle