Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

multiline echo in php

<?php

$var = 'Howdy';

echo <<<EOL
This is output
And this is a new line
blah blah blah and this following $var will actually say Howdy as well

and now the output ends
EOL;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multiline #echo #php
ADD COMMENT
Topic
Name
4+9 =