Static Property¶
Static properties are properties defined with the static keyword. They may be accessed with the name of the class, or instantiated object.
<?php
class x {
static $p = 1;
}
//displays x::foo
print x::$p;
$object = new x;
print $object::$x;
?>
Related : Properties, Static Method