Код: Выделить всё
$string="The Dr. is here!!! I am glad I'm in the U.S.A. for the Dr. quality is great!!!!!!";
preg_match_all('~.*?[?.!]~s',$string,$sentences);
print_r($sentences);
Есть ли у кого-нибудь лучшие предложения ?
Подробнее здесь: https://stackoverflow.com/questions/215 ... -sentences
Мобильная версия