How do I display things from an array?

Hi,

I want to display the OFFER_ID and some other things from the following Array:

Array
(
[0] => Array
(
[OFFER_ID] => 1728
[LAUNCH_DATE] => 2008/10/08
[NAME] => Spock.com - Friend Finder
[RATE] => $5.75/sale
)

[1] => Array
    (
        [OFFER_ID] => 1724
        [LAUNCH_DATE] => 2008/10/07
        [NAME] => Boca Java - Tropical Adventure (incentive)
        [RATE] => $15.00/sale
    ))

My script is as follows taking in mind that I’m using SOAP to get the Array info in the first place from an external site:

require_once('nusoap/lib/nusoap.php');

$user = "-------";
$pass = "-------";

$client = new SoapClient("http://www.maxbounty.com/api/api.cfc?wsdl");
$key = $client->getKey($user, $pass);

$rslt = $client->campaignList($key);

echo $rslt['OFFER_ID'];

unset($client);

I’ve tried echo’in the countries, but no joy as nothing displays.

Hope you can help, thanks!

PHP: print_r - Manual


require_once('nusoap/lib/nusoap.php');

$user = "-------";
$pass = "-------";

$client = new SoapClient("http://www.maxbounty.com/api/api.cfc?wsdl");
$key = $client->getKey($user, $pass);

$rslt = $client->campaignList($key);

// echo $rslt['OFFER_ID'];
foreach($rslt as $item) {
	echo "<p>{$item['OFFER_ID']}</p>";
}

unset($client); 

Thanks oddz, that works great.