Created
March 31, 2013 18:08
-
-
Save philsturgeon/5281485 to your computer and use it in GitHub Desktop.
PHP, you crazy bitch.
This file contains hidden or 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 > $i = ''; | |
| php > var_dump(++$i); | |
| string(1) "1" | |
| php > var_dump(++$i); | |
| int(2) | |
| php > var_dump(++$i); | |
| int(3) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yep, like I said I know what it's doing, but its fucking mental.