Can anyone point me to some php code that will loop through an xml feed and display the contents horizontally? I can loop through the feed and have the results displayed vertically but I have no clue how to get them horizontal.
php foreach loop horizontal
6
Can anyone point me to some php code that will loop through an xml feed and display the contents horizontally?
I can loop through the feed and have the results displayed vertically but I have no clue how to get them horizontal.
This is how I get the results vertical.
This would display the results like
title1
title2
title3
I would like
title1 title2 title3
Thanks!
I can loop through the feed and have the results displayed vertically but I have no clue how to get them horizontal.
This is how I get the results vertical.
PHP Code:
<?php
foreach($xml->Foods->Food as $Food){
$title = $Food->Title ;
echo $title;
?> title1
title2
title3
I would like
title1 title2 title3
Thanks!
- Bruce Hearder
- m4rx
- weaverIT Banned
- [1] reply
- stitchlips
- Bruce Hearder
Next Topics on Trending Feed
-
6