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])) {
- 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
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
3 matches
Mail list logo