Calling non static method with “::”

photogirl

New Member
why can i use a method non-static with the sintaxe of the methods static(class::method) ? Is it a some kind of configuration?\[code\]class Teste { public function fun1() { echo 'fun1'; } public static function fun2() { echo "static fun2" ; }}Teste::fun1(); // why?Teste::fun2(); //ok - is a static method\[/code\]Thanks
 
Back
Top