Assign other value to a variable from two possible values | Function to alternate the values ; Driver Code
< ? php function alternate ( & $ a , & $ b , & $ x ) { $ x = $ a + $ b - $ x ; } $ a = -10 ; $ b = 15 ; $ x = $ a ; echo " x ▁ is ▁ : ▁ " , $ x ; alternate ( $ a , $ b , $ x ) ; echo " After change " ; echo " x is : " ? >