koolio
i found this function on the tinternet that did the trick:
function LIST_CONTENTS($arrayname,$tab="    ",$indent=0)
{ // recursively displays contents of the array and sub-arrays:
// This function (c) Peter Kionga-Kamau ([url]http://www.pmkmedia.com[/url])
// Free for unrestricted use, except sale - do not resell.
// use: echo LIST_CONTENTS(array $arrayname, string $tab, int $indent);
// $tab = string to use as a tab, $indent = number of tabs to indent result
while(list($key, $value) = each($arrayname))
{
for($i=0; $i<$indent; $i++) $currenttab .= $tab;
if (is_array($value))
{
$retval .= "$currenttab$key : Array: <BR>$currenttab{<BR>";
$retval .= LIST_CONTENTS($value,$tab,$indent+1)."$currenttab}<BR>";
}
else $retval .= "$currenttab$key => $value<BR>";
$currenttab = NULL;
}
return $retval;
}
thanks anyway