public static function get_excerpt($text, $br_limit = 3)
    {
        if (substr_count($text, PHP_EOL) > $br_limit) {
            $excerpt = explode(PHP_EOL, $text, ++$br_limit);
            array_pop($excerpt);
            return implode(' ', $excerpt);
        }
        return $text;
    }
public static function get_excerpt($text, $br_limit = 3)
    {
        if (substr_count($text, PHP_EOL) > $br_limit) {
            $excerpt = explode(PHP_EOL, $text, ++$br_limit);
            array_pop($excerpt);
            return implode(' ', $excerpt);
        }
        return $text;
    }
public static function get_excerpt ( $ text , $ br_limit = 3 ) { if ( substr_count ( $ text , PHP_EOL ) > $ br_limit ) { $ excerpt = explode ( PHP_EOL , $ text , ++ $ br_limit ) ; array_pop ( $ excerpt ) ; return implode ( ' ' , $ excerpt ) ; } return $ text ; }
Returns an excerpt of a string by breaking at new lines

@param  array  $text
@param  int    $br_limit
@return string
Returns an excerpt of a string by breaking at new lines