Hi list,

on RedHat with PHP 4.3.6 the following code produces 'test' - I'm expecting
'test2':

class test {
    function printClass() {
        echo __CLASS__;
    }
}

class test2 extends test {
}

test2::printClass();


I would like to get/echo the name of the class calling the method - in my
case test2. Any ideas?


Thanks and best regards,

Torsten Roehr

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to