This is a discussion on Re: output from a for loop into one variable within the PHP Language forums, part of the PHP Programming Forums category; Sigurdur Einarsson wrote: > I know the answer to my question may be quite obvoius, one of those days > ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Sigurdur Einarsson wrote:
> I know the answer to my question may be quite obvoius, one of those days > I guess. > The kind of day that me and me head is not running on all cylinders. > > The question: > How do you take an output from a for loop and place it in variable to echo. > > regards > Siggi Simple example: for($i=0; $i<4; $i++) { echo '<br>i='.$i; } IndyTim |