Forum Moderators: coopster
for($i=1;$i <= 10;$i++) {
echo $xml->content->numbered_content[b]$i[/b]->header; (of course this doesn't work, thus my problem)
}
content =>
(
[numbered_content[b]1[/b]] =>
(
header => bla
content => bla
)
[numbered_content[b]2[/b]] =>
(
header => bla
content => bla
)
[numbered_content[b]3[/b]] =>
(
header => bla
content => bla
)
)
echo $xml->content->numbered_content$i->header; (of course this doesn't work, thus my problem)
echo $xml->content->numbered_content.$i.->header; (of course this doesn't work, thus my problem)