Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $variable = 'ok';
- echo '
- This uses the "here document" syntax to output
- multiple lines with $variable interpolation. Note
- that the here document terminator must appear on a
- line with just a semicolon. no extra whitespace!
- ';
- echo PHP_EOL.PHP_EOL.PHP_EOL;
- echo "
- This uses the \"here document\" syntax to output
- multiple lines with $variable interpolation. Note
- that the here document terminator must appear on a
- line with just a semicolon. no extra whitespace!
- ";
- echo PHP_EOL.PHP_EOL.PHP_EOL;
- echo <<<STACKOVERFLOW
- This uses the "here document" syntax to output
- multiple lines with $variable interpolation. Note
- that the here document terminator must appear on a
- line with just a semicolon. no extra whitespace!
- STACKOVERFLOW;
Advertisement
Add Comment
Please, Sign In to add comment