summaryrefslogtreecommitdiffhomepage
path: root/php.html.markdown
diff options
context:
space:
mode:
authorwikibook <dylee@wikibook.kr>2013-08-20 10:46:10 +0900
committerwikibook <dylee@wikibook.kr>2013-08-20 10:46:10 +0900
commit276d73bdd3b1e43c471a86191dcda87c7e3c5241 (patch)
treee13b9640f2a54cb4378eef1c6ef70c08ae8b2175 /php.html.markdown
parent4e7f0ce330914cded8be937b8e5f1700350623d2 (diff)
parentf33dea8b83bf64ecde36337a5e02cae77f5210de (diff)
fix typo in Java tutorial
Diffstat (limited to 'php.html.markdown')
-rw-r--r--php.html.markdown5
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;