<?php
abstract class a
{
static function b()
{
print 1;
}
}
class aa extends a
{
static function b()
{
print 2;
}
}
a::b();
aa::b();
$aa = new aa();
$aa->b();
Static Keyword
Declaring class members or methods as static makes them accessible without needing an instantiation of the class. A member declared as static can not be accessed with an instantiated class object (though a static method can).