<?php error_reporting(E_ALL); class A { public static function staticFunc() { echo "static"; } public function instanceFunc() { echo "instance"; } } A::instanceFunc(); // instance $a = new A(); $a->staticFunc(); // static ?>