PreviousNextTracker indexSee it online !

(78/231) 2858457 - PHP Heredoc syntax (nowdoc from PHP 5.3.0)

<?php

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

$t=<<<EOF
text - $i
EOFnoend;
$t=<<<EOF
text - $i
EOF;/*no end here, only on next line (blank)*/
EOF;
/*from manual: It is very important to note that the line with the closing identifier must contain no other characters, except possibly a semicolon (;).*/

?>

Submitted kajmanus - 2009-09-14 - 08:48:01z Assigned kpouer
Priority 5 Category text area and syntax packages
Status Open Group None
Resolution None Visibility No

Comments

2011-11-30 - 07:28:37z
ezust
Duplicate of 1571336

Attachments