Explode text between tags

Hi

How can I explode text between two tags like this

<subfield code=“x”>sitepoint</subfield>

What do you mean?

How to Retrieve the word (sitepoint)

Is it an xml file? Then take a look at simplexml.

its not possible in one query as you need a common thing to explode use php.net for proper instructions.

If that is part of an XML file, you want to use SimpleXML to parse it.

If you just have a string with that and you need the text inbetween the tag, what you are looking for is preg_match.

it’s part of an XML file