I would like to split a string of HTML output into an array on
textarea tags. Example:
<div>Hello this is my content <textarea>foo</textareaand this is
also
content <b>some bold text</b<textarea>bar and so forth...</textarea>
here my final content.</div>
The output should be:
Array(
0 =<div>Hello this is my content
1 =<textarea>foo</textarea>
2 =and this is also content <b>some bold text</b>
3 =<textarea>bar and so forth...</textarea>
4 =here my final content.</div>
);
I am fairly new to PHP, so I've been browsing php.net and found some
usefull functions, including strstr, explode and str_split but don't
know how to combine these into a working function. Could anybody
please help me on my way? Your help is appreciated!