String parsing help
- by Click Upvote
I have a string like the following:
$string = "
<paragraph>apples are red...</paragraph>
<paragraph>john is a boy..</paragraph>
<paragraph>this is dummy text......</paragraph>
";
I would like to split this string into an array contanining the text found between the <paragraph></paragraph> tags. E.g…