#Get PHP Calling Funciton

$backtrace = debug_backtrace();
$output = 'Called From: '.$backtrace[1]["function"].' '
    .':'.$backtrace[1]["line"].' '
    .'Args: '.print_r($backtrace[1]["args"], true);