Any way to print the class and the method that is being executed?

hi,

something like this:


class bar {

function foo(){

getMethod() // returns 'foo'
getClass() //returns 'bar'

Regards

Javi

class Foo
{
    function bar ()
    {
        echo 'Executing ', __CLASS__, '->', __METHOD__;
    }
}

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