Php display text segment point? Take a paragraph?

subject
this function can specify the string to be displayed after two words. "

mb_strimwidth(string, 0, "50", "...", "UTF-8");

question
but I now want to implement
so that he can find a paragraph and show only one paragraph
suppose this paragraph

:2 + 1 + 1

......

I want him to show "". It"s a perfect match! "and then stopped. Since the length of each blog is different, I want him to show only the first paragraph and not the second paragraph. How can this be judged?
the structure is as follows:

clipboard.png


switch paragraphs with n.. Just take the first paragraph.


add a field to the database?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b402-2bac6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b402-2bac6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?