Gah. This is driving me nuts. I've scraped up an XML file (sort of) and I need to extract some elements out of it but I am having no luck.
I get only this far...:
$url = "http://www.mysite.com/xml.xml";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$curl_scraped_page = curl_exec($ch);
curl_close($ch);
$fullstring = $curl_scraped_page;
$parsed[] = get_string_between($fullstring, "<U>", "</U>");
echo $parsed[0];
echo substr_count($fullstring, "<U>"); // (I just wanted to check how many instances..)
Now all this does is return the first values in between <U> and </U> but I need it to loop through the whole document..how do I go about it?
This could probably be done a heck of a lut nicer with regex but I sort of suck at it (and this in general..) :queasy: