Re: SimpleXML and the Single String (SOLVED)

From: Date: Wed, 22 Feb 2012 15:04:00 +0000
Subject: Re: SimpleXML and the Single String (SOLVED)
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-316760@lists.php.net to get a copy of this message
On 2/22/2012 8:32 AM, marco@behnke.biz wrote:
There is another nice way. You can pass a second value to the simple xml constructor which is a class name to be used instead of SimpleXMLElement. You can write your own class that extends SimpleXMLElement and override the magic methods to skip the casting I don't really see a need to add an extra layer or class extension when casting works fine. Am I wrong? Why add several lines of code in an extension class?


« previous php.general (#316760) next »