I have a HTML code in a variable which contains several different tags like this:
Expand|Select|Wrap|Line Numbers
- $HTMLCode = "
- <font color='blue'>Here comes some title for this page</font>
- <b>#1 article</b>
- <center>This is the body text</center>
- <b>#2 article</b>
- <b>#3 article /b>
- <font color='red'>Text</font>
- <b>#4 article</b>
- ";
What I need to do now is to make an array containing articles. That means each row of the array should contain the text inside <b> and </b> tags.
Is there any way to do it with regular expression or any other function?
I'v been trying to do it with several explodes and I'm sure that's going to work but thats not a logical way.
How does Bytes.com analyse [ CODE ] tags?
Thanks / Behzad