Re: Dumping an array to a web page
- From: "bob.chatman@xxxxxxxxx" <bob.chatman@xxxxxxxxx>
- Date: 30 Jan 2007 13:10:56 -0800
On Jan 30, 12:28 pm, Rik <luiheidsgoe...@xxxxxxxxxxx> wrote:
CptDondo <y...@xxxxxxxxxxxxxxxx> 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>";
.
- Follow-Ups:
- Re: Dumping an array to a web page
- From: Rik
- Re: Dumping an array to a web page
- References:
- Dumping an array to a web page
- From: CptDondo
- Re: Dumping an array to a web page
- From: Rik
- Dumping an array to a web page
- Prev by Date: Re: PEAR mailing problem
- Next by Date: Re: newbie error, very strange
- Previous by thread: Re: Dumping an array to a web page
- Next by thread: Re: Dumping an array to a web page
- Index(es):
Relevant Pages
|