diff --git a/php.html.markdown b/php.html.markdown index 1cc6d2c5..aa73c547 100644 --- a/php.html.markdown +++ b/php.html.markdown @@ -468,10 +468,16 @@ class MyClass print 'MyClass'; } + //final keyword would make a function unoverridable final function youCannotOverrideMe() { } +/* +Declaring class properties or methods as static makes them accessible without needing an instantiation of the class. +A property declared as static can not be accessed with an instantiated class object (though a static method can). +*/ + public static function myStaticMethod() { print 'I am static';