php code for Heredoc and NOWdoc

php code for Heredoc and NOWdoc 

Example :

<?php
echo <<<"EOF"
Heredoc representation<br>
Good morning!!!<br>
How are you??<br>
EOF;

echo <<<'NOW'
NOWdoc representation<br>
Good mkorning!!!<br>
How are you??<br>
NOW;
?>

<?php
//print echo("");
?>

Output :

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

35683