Logo

Programming-Idioms

History of Idiom 48 > diff from v40 to v41

Edit summary for version 41 by vinceve:
New PHP implementation by user [vinceve]

Version 40

2018-04-29, 23:12:15

Version 41

2018-05-16, 09:50:24

Idiom #48 Multi-line string literal

Assign to variable s a string literal consisting in several lines of text

Idiom #48 Multi-line string literal

Assign to variable s a string literal consisting in several lines of text

Extra Keywords
multiline raw
Extra Keywords
multiline raw
Code
$s = <<<EOD
Huey
Dewey
Louie
EOD;
Comments bubble
Heredoc syntax
Doc URL
http://php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc