Wondering if there is anyone on here who programs in PHP.
Basically, I have a PHP script that takes an input in from an XML stream. It then parses the XML file to variables.
The problem I am having, is, the <description> tag in the XML contains a load of extra data, surplus to my needs. I was wondering if anyone knew of a way in PHP to search for a character and remove everything after, and including the character. The surplus data always starts with "<"
Cheers
Paul
Basically, I have a PHP script that takes an input in from an XML stream. It then parses the XML file to variables.
The problem I am having, is, the <description> tag in the XML contains a load of extra data, surplus to my needs. I was wondering if anyone knew of a way in PHP to search for a character and remove everything after, and including the character. The surplus data always starts with "<"
Cheers
Paul