This is not possible in Python:
Python 2.7.3
[GCC 4.7.2] on linux2
>>> b = 15
>>> a = 15 + b = 16
File "<stdin>", line 1
SyntaxError: can't assign to operator
>>>
I can test the same in C, C++, Java and JavaScript...
var b=15 ; var a = 15+ b = 15
VM155:2 Uncaught ReferenceError: Invalid left-hand side in assignment(…)
But can someone explain me why this works in Php, and why?
php -r '$b = 15; $a = "45". $b = 15;'