Re: Dumping an array to a web page
"bob.chatman@gmail.com" <bob.chatman@gmail.com>
2007-01-30 21:10:56
On Jan 30, 12:28 pm, Rik <luiheidsgoe...@hotmail.com> wrote:
> CptDondo <y...@NsOeSiPnAeMr.com> wrote:
> > Is there some quick way to dump an array to a webpage and have it show
> > up neatly formatted rather than the typical blob-o-text?
> 
> > Thanks,
> 
> > --Yan
> 
> echo '<pre>';
> var_dump($var);
> echo '</pre>';
> 
> --
> Rik Wasmus

there is also print_r() which is much nicer for arrays imo

print "<pre>";
print_r($arr);
print "</pre>";

Your Ad Here
Giganews Newsgroups