Menu

#1218 PHP parser (heredoc and nowdoc from PHP 5.3.0)

open
nobody
None
5
2009-09-14
2009-09-14
kajmanus
No

<?php

$t=<<<"EOF"
text - $i
EOF;
/*
PHP 5.3.0 also introduces the possibility for Heredoc's to use double quotes in declarings
parsers message - ';' expectet
*/

$t=<<<'EOF'
text - $i
EOF;
/*
Nowdoc support was added in PHP 5.3.0. ($i inst variable)
parsers message - statement expectet
*/

?>

Discussion


Log in to post a comment.