no, without echo!
--------------- Added [DATE]1238449330[/DATE] at [TIME]1238449330[/TIME] ---------------
i got a pm but i'm answering here because maybe other users also want to know it...
If you want to use loops you could make it this way:
PHP Code:
$output =''; // here i'm defining a empty $output variable, just to be clear its empty^^
foreach ($a as $b)
{
$output .= $b; //add something to $output
}
so, now you have everything i your $output variable
Here's a example from a page i created:
PHP Code:
foreach ($contacts as $email=>$name)
{
$counter++;
exec_switch_bg();
if ($plugType == 'email')
{
$contactdetails = $name - $email;
}
else
{
$contactdetails = $name;
}
eval('$contactbits .= "' . fetch_template('contactbit') . '";');
}
here i have a $contactbits variable where i put the content in every foreach step