Welcome to iCodes

Tutorial

Basic Example PHP Coding



$xml = simplexml_load_file("PASTE A WEBSERVICES REQUEST HERE");

foreach ($xml->item as $item) {
$title = $item->title;
$description = $item->description;
$merchant = $item->merchant;
$voucher_code = $item->voucher_code;
$expiry_date = $item->expiry_date;
$affiliate_url = $item->affiliate_url;
$merchant_logo_url = $item->merchant_logo_url; $merchant_url = $item->merchant_url;

echo'
'.$merchant.'
'.$title.'
'.$description.'
'.$expiry_date.'
'.$voucher_code.'
'.$affiliate_url.'
'.$merchant_logo_url.'
'.$merchant_url.'
';
}

HOMCOM Kids Trampoline, with Safety Net, for Ages 3-10 Years from Aosom
Save £37.00 - Bounce all day - this HOMCOM trampoline keeps kids happy and active. Made with powder-coated steel, it's a robust formation, staying in shape when in use. Surrounded with a safety net and padded... Was: £99.99. Price: £62.99 (Price correct on 2026-04-03)...

Only 5 days left
New Collection from SCS
Save up to £200 on the new collection...

Endless scent container plant collection from Crocus
Endless scent container plant collection: A mauve-blue and white, scented bedding collection for pots Price: £47.96 (Price correct on 2026-03-29)...

Ends Today
10% Off from Barratts Shoes
Get 10% Off your first order when you sign up to the Barratts mailing list. Valid for new customers only. Exclusions may apply...

Voucher Codes   Contact Us   Terms and Conditions   Privacy Policy   Tutorial   New Platform   Update Cookies Preferences   Sitemap