Re: Change var_dump to return information

From: Date: Mon, 29 Sep 2003 00:10:08 +0000
Subject: Re: Change var_dump to return information
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-4601@lists.php.net to get a copy of this message
IIRC, something like: ob_start(); var_dump($obj); $debug_info_obj = ob_get_clean(); would do the trick. Thanks, Xavier On Sun, 2003-09-28 at 17:51, Dennis Sterzenbach wrote: > Hi, > > I got in mind, that it might be interesting for debug purpose, > to obtain information like the output of var_dump() to a string. > > Really would be nice being able to have something like > $debug_info_obj = var_dump($obj); > > or even by introducing a new function like $info=var_info($var); > > What do you think about it? > > Regards > Dennis Sterzenbach -- Xavier Spriet <xavier@wuug.org> The Windsor Unix Users Group

« previous php.internals (#4601) next »