Jump to content

[SOLVED] removing everything before <?xml


severndigital

Recommended Posts

FIgured it out.

 

here it is for anyone else

 

probably not the cleanest way .. but it's working

//removing evertything before the <?xml 
$headers = substr($string,0,stripos($string,"<?xml"));
$string = str_replace($headers,'',$string);
//then we remove anything after the last > just to be safe.
$string = substr($string,0,(strrpos($string,">")+1)); 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.