<?php
$items = array(); // this is the item scheme.
$items[0]['asin'] = 'B000CS3RIW';
$items[0]['quantity'] = 1;
$items[1]['asin'] = 'B000EBCCOM';
$items[1]['quantity'] = 1;
// Create a new cart
$amazonCart = new AmazonECS_Cart();
$xmldocument = $amazonCart->CartCreate( $items ); // add all items
// For future reference i save the tracking infos in the session
$_SESSION['CartID'] = $amazonCart->cartId;
$_SESSION['CartHMAC'] = $amazonCart->cartHMAC;
$_SESSION['PurchaseURL'] = $amazonCart->purchaseURL;
// Now i parse the document and do whatever necessary with it...
$xmlParser = new Datatype('XML');
$phpArray = $xmlParser->decode( $xmldocument );
?>