What does "echo<<<EOT" do?

A

Anonymous

Guest
As a beginner, I don't know how echo<<<EOT works.. Can anyone help me?
 
Note that the keyword EOT can be whatever you wish

Code:
<?php

echo <<<EOT


hello world!

EOT;
?>

is the same as

Code:
<?php
echo <<shallabais

hello world

shallabais;
?>
 
Back
Top