Identify which function called another

From: Date: Thu, 13 Jan 2005 02:09:12 +0000
Subject: Identify which function called another
Groups: php.general 
Request: Send a blank email to php-general+get-206263@lists.php.net to get a copy of this message
Is there any way, I from one function can identify which other function called it, without parameter passing the name manually ? In code, something like <?php function a() { return c(); } function b() { return c(); } function c() { return 'I got called by'.$name_of_the_function_who_called_me; } echo b(); ?> where I would like to have function c identify if it was called by function a or b -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.careercross.com

« previous php.general (#206263) next »