The first paragraph shows only an entry title and an encoded city/state/country location. None of it is needed as I’m already grabbing that info from other elements.
No thoughts on this? I imagine it would only require the call of two or three different functions. I’m just unsure of what those functions would be apart from the strpos() to find the positions of the opening <p> tag and the closing </p>.
maestro360, it is usually helpful to give an example or two of the problematic input (your feed items) and a clear description of what you want to do (you’ve done this part).
Without having seen the input: explode on </p>, throw away the first item of the array (array_shift into nothing), and then implode the array on </p> again.
If there’s any information before the first paragraph you need to keep, then we have more work to do.
Thank you all for your comments, especially Starlion. I think you found my solution, and it’s even more simple than the direction I originally was originally going.