Array display problem

[php]

$c=new Tab($u->getPseudo());
$pages=$c->getName();
foreach($pages as $page)
{echo $page;}[/php]

This is part of the code to display an array to form a list on my page.

However, The list displays but not in the place where I want it. (It displays at the top of the page because it is not in my setContent fuction…)

I want it to display where I have marked ##### in the code below…PLEASE HELP!

[php]$p->setContent(‘

Info: ‘.$u->getInfo().’ #####
’)[/php]

have you tired storing the output to an var then using that in the setContent call like this:

[php]<?php

$c=new Tab($u->getPseudo());
$pages=$c->getName();
foreach($pages as $page){
$pageHolder.=$page;
}

$p->setContent(‘

Info: ‘.$u->getInfo().’ ’.$pageHolder.’
’);
?>[/php]
Sponsor our Newsletter | Privacy Policy | Terms of Service