Static Members
18/34
Variables
Final
PHP 5 supports static class functions, which is a compiler hint that enforces static usage.
Without Static
<?php
class
Foo
{
function
getName
() {
return
$this
->
name
;
}
}
print
Foo
::
getName
();
?>
Output