public static function parseTrace($trace, $rows = 10)
    {
        $lines = array_filter(preg_split('/#\d*/m', $trace));
        return array_slice($lines, 0, $rows);
    }
public static function parseTrace($trace, $rows = 10)
    {
        $lines = array_filter(preg_split('/#\d*/m', $trace));
        return array_slice($lines, 0, $rows);
    }
public static function parseTrace ( $ trace , $ rows = 10 ) { $ lines = array_filter ( preg_split ( '/#\d*/m' , $ trace ) ) ; return array_slice ( $ lines , 0 , $ rows ) ; }
Parse text of trace into an array of lines

@param string $trace
@param int $rows
@return array
Parse text of trace into an array of lines