public static function getCLIBacktrace($backtrace=null) {
		if(!$backtrace)
			$backtrace = debug_backtrace();

		$r = '';
		$c = count($backtrace);
		for($i=0; $i<$c; $i++) {
			$trace = $backtrace[$i];

			if(isset($trace['file']))
				$r .= $trace['file'].':'.$trace['line']."\n";
		}

		return $r;
	}
public static function getCLIBacktrace($backtrace=null) {
		if(!$backtrace)
			$backtrace = debug_backtrace();

		$r = '';
		$c = count($backtrace);
		for($i=0; $i<$c; $i++) {
			$trace = $backtrace[$i];

			if(isset($trace['file']))
				$r .= $trace['file'].':'.$trace['line']."\n";
		}

		return $r;
	}
public static function getCLIBacktrace ( $ backtrace = null ) { if ( ! $ backtrace ) $ backtrace = debug_backtrace ( ) ; $ r = '' ; $ c = count ( $ backtrace ) ; for ( $ i = 0 ; $ i < $ c ; $ i ++ ) { $ trace = $ backtrace [ $ i ] ; if ( isset ( $ trace [ 'file' ] ) ) $ r .= $ trace [ 'file' ] . ':' . $ trace [ 'line' ] . "\n" ; } return $ r ; }
Return the backtrace formatted for CLI.
@param  array $backtrace
@return string
Return the backtrace formatted for CLI .