-
SitePoint Zealot

explode text between tags
Hi
How can I explode text between two tags like this
<subfield code="x">sitepoint</subfield>
-
-
SitePoint Zealot

How to Retrieve the word (sitepoint)
-
Is it an xml file? Then take a look at simplexml.
-
SitePoint Member
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.
-
SitePoint Zealot

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks