Re: [PHP] Emulation: $var = print_r($array)

2002-04-04 Thread Philip Olson
> > Is there a way to "emulate" var_dump(), print_r() so I can write it to a > > file and when I open this file the information are shown like if I really > > did a print_r();? > > ob_start(); > print_r($doo); > $dah = ob_get_contents(); > ob_end_clean(); > echo $d

Re: [PHP] Emulation: $var = print_r($array)

2002-04-04 Thread Jason Wong
On Thursday 04 April 2002 22:43, Julio Nobrega Trabalhando wrote: > Is there a way to do something like this? > > I wrote a wanna-be debugger. It just write to a file simple and common > used function and variables, array or objects. Then when I activate it, a > new window is opened with these