Re: [PHP] print_r style array content

2001-04-18 Thread Christian Reiniger
On Wednesday 18 April 2001 06:01, you wrote: > Dear All, > > I wonder if there is a php function that could return content > of an array, in print_r style, as a string. I need to get it and > send as debug information. If not, is there a workaround or > alternative, other than writing a functi

RE: [PHP] print_r style array content

2001-04-18 Thread Neil Kimber
Try: function getStringFromObj($prmObjIn) { ob_start(); var_dump($prmObjIn); $output = ob_get_contents(); ob_end_clean(); return $output; } I grabbed this from user comments somewhere on php.net. It works a treat. -Original Message- From: Chi