<?php
class MyClass {
    // definitions:
    function method() { echo 1;}
    static function staticMethod() {echo 2;}
    function otherMethod() {
        // static internal invocation
        self::staticMethod();
        // dynamic internal invocation
        $this->method();
    }
}
// static external invocation
MyClass::staticMethod();
// dynamic external invocation
$obj = new MyClass();
$obj->method();
?>