john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

php heredocs body of text

<html>
<body>

<?php

echo <<<END

It is very important to note that the line with the closing identifier must contain no other characters,
except possibly a semicolon (;). That means especially that the identifier may not be indented, and there
 may not be any spaces or tabs before or after the semicolon.

<br />
the end
<b>this item is inserted into the file as bold</b>

END;

?>

<pre>
echo <<< END

It is very important to note that the line with the closing identifier must contain no other characters,
except possibly a semicolon (;). That means especially that the identifier may not be indented, and there
 may not be any spaces or tabs before or after the semicolon.

<br />
the end

b>this item is inserted into the file as bold/b>
END;

</pre>
</body>
</html>

  • « php linux expect su continued
  • php get another webpage php »

Published

Feb 6, 2010

Category

php

~133 words

Tags

  • body 2
  • heredocs 1
  • of 13
  • php 82
  • text 16