Possible Duplicate:
Caller function in PHP 5?
php: determine where function was called from
Lets say
function item_description(){
$var = 6;
description($var);
}
function item_description_extended(){
$var = 7;
description($var);
}
function description(){
if(called_from_item_description){
echo 6;
}else{
echo 7;
}
}
I know this functions make no sense... but my question here is if i can know what method called descrption()
?