On 2/22/2012 8:32 AM, ma...@behnke.biz wrote:
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
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
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php