You can do this with the regular = operator in PHP. Personally I never liked that since you combine things in an unexpected way. Then again, it does reduce the scope of state, which is nice. And in python you get a dedicated operator, which makes things more explicit. (Lisp devs crying while they read this)