Last active
January 5, 2017 18:22
-
-
Save binki/7c0082c821bcd6c3f0ea1242be941ded to your computer and use it in GitHub Desktop.
I can’t get PHP to look like C++ xD
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 | |
class NotStream { | |
public function write($s) { | |
echo $s; | |
return $this; | |
} | |
} | |
class std { | |
const eol = PHP_EOL; | |
public static function cout() { | |
return new NotStream(); | |
} | |
} | |
std::cout()->write('Hello world')->write(std::eol); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment