[PHP] Overloaded Class The __tostring() Method

2004-08-20 Thread Daniel Schierbeck
I am trying to build an XML-formatted string from an object. I use this code: ?php class XML_Object { private $childs = array(); public function __get ($prop) { if (isset($this-childs[$prop])) {

Re: [PHP] Overloaded Class The __tostring() Method

2004-08-20 Thread John Holmes
- Original Message - From: Daniel Schierbeck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 20, 2004 10:47 AM Subject: [PHP] Overloaded Class The __tostring() Method I am trying to build an XML-formatted string from an object. I use this code: ?php class XML_Object

Re: [PHP] Overloaded Class The __tostring() Method

2004-08-20 Thread Daniel Schierbeck
John Holmes wrote: - Original Message - From: Daniel Schierbeck [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 20, 2004 10:47 AM Subject: [PHP] Overloaded Class The __tostring() Method I am trying to build an XML-formatted string from an object. I use this code: ?php