Hey everyone..

maybe a bit a strange question.. im using a php function library filled with custome functions i use. I wrote a code analyzer (in C) to analyse a website (bunch of php files) and it writes out a functions.inc file specially for the website..
no problems so far..

what i need now is a way to figure out the name of functions inside the function (somethimes the name changes because of different versions).

example:

function thisisafunction1234 () {
// some routine to return the current functionname
// 'thisisafunction1234' in this case
}

echo thisisafunction1234();
// should return: thisisafunction1234

Anybody? don't even know if this is possible..

Jordy

    I havn't used it before but what I think you are looking for is the FUNCTION constant. It would go something like this.

    function thisisafunction1234() {
        // some routine to return the current functionname
        // 'thisisafunction1234' in this case
        return(__FUNCTION__);
    }
    
    echo thisisafunction1234();
    // should return: thisisafunction1234 
    

      rpanning..

      you are my hero! 🙂 thnxz this will do the trick!!

        Write a Reply...