PHP split content when a HTML element is found
Posted
by sea_1987
on Stack Overflow
See other posts from Stack Overflow
or by sea_1987
Published on 2010-05-27T11:27:48Z
Indexed on
2010/05/27
11:31 UTC
Read the original article
Hit count: 125
php
|string-manipulation
Hello,
I have a PHP variable that holds some HTML I wanting to be able to split the variable into two pieces, and I want the spilt to take place when a second bold <strong> or <b>
is found, essentially if I have content that looks like this,
My content
This is my content. Some more bold content, that would spilt into another variable.
is this at all possible?
© Stack Overflow or respective owner