-
-
Save voldemortensen/f439a04b7e48b41a631d042edec2c451 to your computer and use it in GitHub Desktop.
lol
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 | |
class Lol { | |
private $value = 0; | |
public function __toString() { | |
return (string)$this->value += 1; | |
} | |
} | |
$a = new Lol(); | |
if ("$a" == 1 && "$a" == 2 && "$a" == 3) { | |
echo "oops\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment