Re: Object arithmetic

From: Date: Thu, 18 Oct 2007 16:08:21 +0000
Subject: Re: Object arithmetic
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-32853@lists.php.net to get a copy of this message
In this case, the proper solution is to force SimpleXML to cast values to strings, because, after all, XML has nothing but strings. Then
+ operator requires numeric values. SimpleXML can't return string when asked for numeric value. The problem is while + can accept both int and float, it can't ask for both. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#32853) next »