Created
August 22, 2012 20:08
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
a=10; | |
b=20; | |
a= a+b; // a has 30; 20+10 | |
b=a-b; // b has 10; (30-20) | |
a=a-b; // a has 20(30-10) // | |
// values are swapped now !!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment