How do you convert object data to a string?
Posted: Tue Sep 27, 2005 12:20 pm
Hi!
How would I go about putting an object into a string so it can be emailed?
I'm using Pear DB and when there is an error, I want to email the $result.
I can print_r ($result) to output it to the screen. But, how would I get that same print_r output into a string/variable?
$error_dump = var_dump($result) //outputs to the screen as well :/
Thanks for any help!
Ahhhk!
How would I go about putting an object into a string so it can be emailed?
I'm using Pear DB and when there is an error, I want to email the $result.
I can print_r ($result) to output it to the screen. But, how would I get that same print_r output into a string/variable?
$error_dump = var_dump($result) //outputs to the screen as well :/
Thanks for any help!
Ahhhk!