Different Ways to Echo / Output Text in PHP

[cc lang=”php”]

[/cc]


[cc lang=”php”]

echo “ab”;

echo “c”;

[/cc]


[cc lang=”php”]
<?php
echo <<<eol // <- We use the heredoc operator. Notice 3 times '<'

EOL; // End the heredoc block. Has to be the first characters on the line, so don’t indent it.
?>
[/cc]