valdeir2000

Echo

Feb 6th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.75 KB | None | 0 0
  1. <?php
  2.  
  3. $variable = 'ok';
  4.  
  5. echo '
  6. This uses the "here document" syntax to output
  7. multiple lines with $variable interpolation. Note
  8. that the here document terminator must appear on a
  9. line with just a semicolon. no extra whitespace!
  10. ';
  11.  
  12. echo PHP_EOL.PHP_EOL.PHP_EOL;
  13.  
  14. echo "
  15. This uses the \"here document\" syntax to output
  16. multiple lines with $variable interpolation. Note
  17. that the here document terminator must appear on a
  18. line with just a semicolon. no extra whitespace!
  19. ";
  20.  
  21. echo PHP_EOL.PHP_EOL.PHP_EOL;
  22.  
  23. echo <<<STACKOVERFLOW
  24. This uses the "here document" syntax to output
  25. multiple lines with $variable interpolation. Note
  26. that the here document terminator must appear on a
  27. line with just a semicolon. no extra whitespace!
  28. STACKOVERFLOW;
Advertisement
Add Comment
Please, Sign In to add comment