diff options
| author | Adam Bard <github@adambard.com> | 2013-08-31 23:11:05 -0700 | 
|---|---|---|
| committer | Adam Bard <github@adambard.com> | 2013-08-31 23:11:05 -0700 | 
| commit | 4d439093dab55f93e6f8a0c590e89e2d1c4d7f67 (patch) | |
| tree | c2f221bf8eccebb12ad3e3cac9525e2264051cfc | |
| parent | 13566b6ef6924981054cf38ff6501689dc9ff2e9 (diff) | |
| parent | 92e921e8f3a9138bdb94b19a15cb76081cc90689 (diff) | |
Merge pull request #284 from ipscott/master
Update php.html.markdown
| -rw-r--r-- | php.html.markdown | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/php.html.markdown b/php.html.markdown index 19f507ad..0caa07b6 100644 --- a/php.html.markdown +++ b/php.html.markdown @@ -476,10 +476,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';  | 
