PHP中“。”或EOL的位置 - 以较小者为准

I'm parsing a text and I need to find end of a sentence. There are not all senteces finishes with dot (.), some of them finishes with linebreak (PHP_EOL), for example chapter titles. I need to be able to find the end of a sentence after any given point of text.

Of course I can do:

$senteceEndswithDot = mb_strpos($content, ".", $randomPos+1, 'UTF8');
$senteceEndswithBreak = mb_strpos($content, PHP_EOL, $randomPos+1, 'UTF8');

and then compare those two numbers but is there any more elegant way to code this?