Created
November 29, 2011 16:03
-
-
Save manuelpichler/1405317 to your computer and use it in GitHub Desktop.
PHP is such an ugly language
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 MyClass | |
{ | |
static function myMethod( | |
$x = <<<'FOO' | |
Hello | |
FOO | |
, $y = <<<'BAR' | |
PHP_Depend | |
BAR | |
) { | |
echo $x, $y; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I do not critizes this syntax consistency at all, but I hate/dislike the now- and heredoc syntax in general from the first day and so this usage looks so ugly for me.