the difference between __FUNCTION__ and __METHOD__ as in PHP 5.0.4 is that__FUNCTION__ returns only the name of the functionwhile as __METHOD__ returns the name of the class alongwith the name of the functionclass trick{ function doit() { echo __FUNCTION__; } function doitagain() { echo __METHOD__; }}$obj=new trick();$obj->doit();output will be ---- doit$obj->doitagain();output will be ----- trick::doitagain