public function getTraceAsString() {
		$lines = array ();
		for( $i = 0; $i < count($this->trace); $i++ ){
			$a = $this->trace[$i];
			$call = "{$a['function']}()";
			if( isset($a['class']) ){
				$call = "{$a['class']}{$a['type']}$call";
			}
			$lines[] = "#$i {$a['file']}({$a['line']}): $call";
		} 
		$lines[] = "#$i {main}";
		return implode( "\n", $lines );
	}
public function getTraceAsString() {
		$lines = array ();
		for( $i = 0; $i < count($this->trace); $i++ ){
			$a = $this->trace[$i];
			$call = "{$a['function']}()";
			if( isset($a['class']) ){
				$call = "{$a['class']}{$a['type']}$call";
			}
			$lines[] = "#$i {$a['file']}({$a['line']}): $call";
		} 
		$lines[] = "#$i {main}";
		return implode( "\n", $lines );
	}
public function getTraceAsString ( ) { $ lines = array ( ) ; for ( $ i = 0 ; $ i < count ( $ this -> trace ) ; $ i ++ ) { $ a = $ this -> trace [ $ i ] ; $ call = "{$a['function']}()" ; if ( isset ( $ a [ 'class' ] ) ) { $ call = "{$a['class']}{$a['type']}$call" ; } $ lines [ ] = "#$i {$a['file']}({$a['line']}): $call" ; } $ lines [ ] = "#$i {main}" ; return implode ( "\n" , $ lines ) ; }
Get backtrace from where error was raised as string as per built-in Exception class
@return string
Get backtrace from where error was raised as string as per built - in Exception class