Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Echo multiline string

Mon Oct 27, 2008 11:41 pm

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

Line 4
$website

EXCERPT;
?>




Post a reply
  Related Posts  to : Echo multiline string
 PHP echo command     -  
 echo client using Sockets     -  
 Difference between PHP echo() and PHP print()?     -  
 echo command to output HTML     -  
 check if string start with a specific sub-string in PHP     -  
 recursive string reversal- reverse string     -  
 Splitting a String Based on a Found String     -  
 check if string ends with specific sub-string in php     -  
 String token for string split     -  
 Pad a string to a certain length with another string     -  

Topic Tags

PHP Strings