<?php

class Foo {
    public function method()
    {
        echo __FUNCTION__ ;
    }
}

$f = new Foo();
$f->method();