php foreach loop horizontal
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
foreach($xml->Foods->Food as $Food){
$title = $Food->Title ;
echo $title;
?>
title1
title2
title3
I would like
title1 title2 title3
Thanks!
Bored. Learn everything you need to know about Organic Gardening.