|
Posted by jamesgoode on 11/07/07 19:58
Hi,
I've got a complicated problem to solve. Say I have an indexed array
$array, with contents as follows:
'name' => 'James'
'favefood' => 'Spagbol'
'os' => 'Debian GNU/Linux'
And say I want to create a list, that prints the name of each item,
and then its contents, like this:
name: James
favefood: Spagbol
os: Debian GNU/Linux
The only problem, I don't what the items in the array are called, so I
can't do this:
os: <?=$array['os']?>
Any ideas? It's got me stumped.
Thanks in advance,
--James Goode.
Navigation:
[Reply to this message]
|