Does static method in PHP have any difference with non-static method ?
Posted
by user198729
on Stack Overflow
See other posts from Stack Overflow
or by user198729
Published on 2010-03-13T16:22:43Z
Indexed on
2010/03/13
16:25 UTC
Read the original article
Hit count: 301
class t {
public function tt()
{
echo 1;
}
}
t::tt();
See?The non-static function can also be called at class level.So what's different if I add a static
keyword before public
?
© Stack Overflow or respective owner