RE: [PHP] print_r style array content

From: Date: Wed, 18 Apr 2001 11:41:53 +0000
Subject: RE: [PHP] print_r style array content
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49181@lists.php.net to get a copy of this message
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: Chien-pin Wang [mailto:cpw@pins.com.tw] Sent: 18 April 2001 05:02 To: php-general@lists.php.net Subject: [PHP] print_r style array content 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 function? Many thanks. Chien-pin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#49181) next »