Forum Moderators: coopster
for ($i = 0; $i < $numberOfItems; $i++)
{
$a_name = $dates -> item($i) -> textContent;
$$a_name = array
(
'title' => $titles,
'description' => $descriptions,
'link' => $links,
'keywords' => $keywords;
$mArray[$dates] = $$a_name;
}
krsort($mArray);
foreach ($mArray as $items)
{
print key($mArray); // <--- this one ARGHH!
print '<br />';
foreach ($items as $values)
{
print $values;
print '<br />';
}
}
so everything works fine except for when i try to view everything, the keys of the master array ($mArray)only display the first one.
thanks for any help!