If '+' concatenates what does '-' do? : )
-Jason On Wed, 2002-06-05 at 09:39, Andrei Zmievski wrote: > > > The latest one changes some operators. > > > > Nice, but why not overload + for strings to do the concatenation? > > Doing that would be ambiguous, to say the least. PHP automatically > converts operand types with arithmetic + operator. What would you expect > the result of the following expressions to be: > > "1" + "2" > 1 + "2" > "2" + $a > > -Andrei http://www.gravitonic.com/ > * 2 + 2 = 5 for extremely large values of 2. * > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php