diff options
author | Adam Bard <github@adambard.com> | 2013-08-13 07:45:16 -0700 |
---|---|---|
committer | Adam Bard <github@adambard.com> | 2013-08-13 07:45:16 -0700 |
commit | d7823eab22c617418941fe7e92c54a72a5b79409 (patch) | |
tree | 6c138e63986f734f81bbd5a0d66fe9d9e525651f | |
parent | d088d4f1559d50e4c923bd5968704c6ebe1d34ff (diff) | |
parent | bbb8c837457eecc95ac3a66db150ed595ff7bb33 (diff) |
Merge pull request #200 from deftx/master
Added visibility to static variable declarations
-rw-r--r-- | php.html.markdown | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/php.html.markdown b/php.html.markdown index ce228870..083574ee 100644 --- a/php.html.markdown +++ b/php.html.markdown @@ -440,6 +440,11 @@ class MyClass static $staticVar = 'static'; + // Static variables and their visibility + public static $publicStaticVar = 'publicStatic'; + private static $privateStaticVar = 'privateStatic'; // Accessible within the class only + protected static $protectedStaticVar = 'protectedStatic'; // Accessible from the class and subclasses + // Properties must declare their visibility public $property = 'public'; public $instanceProp; |