Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $variable = 'ok';
- /* Não imprime a variável e é necessário o escape */
- 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;
- /* Imprime a variável e é necessário o escape */
- 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;
- /* Imprime a variável e não é necessário o escape */
- 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;
Add Comment
Please, Sign In to add comment