[SOLVED]display array inline
Posted: Sun May 13, 2007 3:44 am
I've been banging my head for too long on this one.
I'd like to dynamically create the following, but can't work it out.
I have tried variants of this but can only get them display below each other not side by side.
I am constantly fighting with Arrays. Any ideas?
ta, Will.
I'd like to dynamically create the following, but can't work it out.
Code: Select all
echo $toXML[0][0]." = ".$toXML[0][1]."<br />";
echo $toXML[1][0]." = ".$toXML[1][1]."<br />";Code: Select all
foreach ($toXML as $outer_key => $single_array) {
foreach ($single_array as $inner_key => $value) {
echo "<br>" . $value;
}
}ta, Will.