«»

Technicality

· 28TH OF JULY, THE YEAR 2005

PHP HEREDOC AND WHITESPACE

Woah. Apparently when using the PHP heredoc operator, you can’t have any whitespace after the closing identifier. So in

$string = << This is some text
EOT;

Woe betide you should a space or tab fall after that EOT;

NO COMMENTS YET

Comments are closed.