protected function _getSourceFunction($trace)
    {
        $lastTrace = $this->_getLastTrace($trace);

        if (isset($lastTrace['function']) || isset($lastTrace['class'])) {

            $args = '';
            if (isset($lastTrace['args'])) {
                $args = '( ' . count($lastTrace['args']) . ' args' . ' )';
            }

            if (isset($lastTrace['class'])) {
                $function = $lastTrace['class'] . ' ' . $lastTrace['type'] . ' ' . $lastTrace['function'] . ' ' . $args;
            } else {
                $function = $lastTrace['function'] . ' ' . $args;
            }

            return 'Function: ' . $function . '<br />';
        }

        return '';
    }
protected function _getSourceFunction($trace)
    {
        $lastTrace = $this->_getLastTrace($trace);

        if (isset($lastTrace['function']) || isset($lastTrace['class'])) {

            $args = '';
            if (isset($lastTrace['args'])) {
                $args = '( ' . count($lastTrace['args']) . ' args' . ' )';
            }

            if (isset($lastTrace['class'])) {
                $function = $lastTrace['class'] . ' ' . $lastTrace['type'] . ' ' . $lastTrace['function'] . ' ' . $args;
            } else {
                $function = $lastTrace['function'] . ' ' . $args;
            }

            return 'Function: ' . $function . '<br />';
        }

        return '';
    }
protected function _getSourceFunction ( $ trace ) { $ lastTrace = $ this -> _getLastTrace ( $ trace ) ; if ( isset ( $ lastTrace [ 'function' ] ) || isset ( $ lastTrace [ 'class' ] ) ) { $ args = '' ; if ( isset ( $ lastTrace [ 'args' ] ) ) { $ args = '( ' . count ( $ lastTrace [ 'args' ] ) . ' args' . ' )' ; } if ( isset ( $ lastTrace [ 'class' ] ) ) { $ function = $ lastTrace [ 'class' ] . ' ' . $ lastTrace [ 'type' ] . ' ' . $ lastTrace [ 'function' ] . ' ' . $ args ; } else { $ function = $ lastTrace [ 'function' ] . ' ' . $ args ; } return 'Function: ' . $ function . '<br />' ; } return '' ; }
Get last function name and it params from backtrace
@param   array $trace Backtrace
@return  string
Get last function name and it params from backtrace