Re: what to use instead of foreach
| From: | Ashley Sheridan | Date: | Sun, 12 Apr 2009 23:01:26 +0000 |
| Subject: | Re: what to use instead of foreach | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-291403@lists.php.net to get a copy of this message | ||
On Sun, 2009-04-12 at 13:56 -0500, PJ wrote:
> foreach does not allow for different formatting for output...
> What could be used as a workaround?
> example:
> echo $some_result, "<br>"; // will print all results in 1 column
> echo $some_result, ","; // will print all results comma-separated in 1 row
>
> But how do you get result1, result2 & result3 // with <br> at end ?
>
> --
> unheralded genius: "A clean desk is the sign of a dull mind. "
> -------------------------------------------------------------
> Phil Jourdan --- pj@ptahhotep.com
> http://www.ptahhotep.com
> http://www.chiccantine.com/andypantry.php
>
>
You need to explain a bit more of what you are trying to achieve. There
are no limits I know of with using foreach to output content.
Ash
www.ashleysheridan.co.uk