Basic Example PHP Coding

All Categories > Tutorials


$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.'


'
;

}



UK Home | US Home | UK Register | US Register