public static function explodeText($text, $carriage = "\r")
    {
        // Default delimiters
        $delimiters = array('!', '?', '.');

        if ($carriage !== null) {
            array_push($delimiters, $carriage);
        }

        return self::multiExplode($text, $delimiters);
    }
public static function explodeText($text, $carriage = "\r")
    {
        // Default delimiters
        $delimiters = array('!', '?', '.');

        if ($carriage !== null) {
            array_push($delimiters, $carriage);
        }

        return self::multiExplode($text, $delimiters);
    }
public static function explodeText ( $ text , $ carriage = "\r" ) { // Default delimiters $ delimiters = array ( '!' , '?' , '.' ) ; if ( $ carriage !== null ) { array_push ( $ delimiters , $ carriage ) ; } return self :: multiExplode ( $ text , $ delimiters ) ; }
Explodes a text into sentences

@param string $text
@param string $carriage Carriage return to be used to detect new lines
@return array
Explodes a text into sentences