By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,746 Members | 1,849 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,746 IT Pros & Developers. It's quick & easy.

output from a for loop into one variable

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
*** Sigurdur Einarsson wrote/escribió (Wed, 31 Mar 2004 16:18:55 +0000):
How do you take an output from a for loop and place it in variable to echo.


The for loops do not return any value. They just execute lines of code.

--
--
-- Álvaro G. Vicario - Burgos, Spain
--
Jul 17 '05 #2

P: n/a
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
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.