Codice PHP:
function mydebug($array$file$func)
{
echo 
"__FILE__:".$file."
"
;
echo 
"__FUNCTION__:".$func."
"
;

print_r($array);
}

mydebug($var__FILE____FUNCTION__);