Created
December 18, 2012 13:04
-
-
Save jamesmills/4327836 to your computer and use it in GitHub Desktop.
Tour Offer Title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$content = new SimpleXMLElement(file_get_contents('http://www.traveleditions.co.uk/service.asmx/ReturnTours')); | |
foreach ($content->Tours->Tour as $tour) { | |
if ($tour->Country['Name'] == 'United Kingdom') { | |
echo '<p>' . htmlentities($tour->OfferTitle, ENT_QUOTES | ENT_IGNORE, "UTF-8") . '</p>'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment