Echo multiline string : Echo « Development « PHP






Echo multiline string

<?php
$website = "http://www.java2s.com";
echo <<<EXCERPT
<p>Line 1
Line 2

Line 4
$website

EXCERPT;
?>


           
       








Related examples in the same category

1.Echoing a String
2.Use Echo command to output HTML string
3.Echo variables
4.Use Echo to output string
5.Escape the inner quotation marks by placing a backslash before each one
6.Use echo command to output HTML