>> 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?
>>
> To keep the code readable?
>
> $value = $xml->node;
>
> vs.
>
> $value = (String)$xml->node;
>
> I like the first one. Plus
Am 22.02.12 16:04, schrieb Jay Blanchard:
> On 2/22/2012 8:32 AM, ma...@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 Sim
On 2/22/2012 8:32 AM, ma...@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
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
Simon Schick hat am 22. Februar 2012 u
4 matches
Mail list logo