Answers for "PHP heredoc;"

PHP
5

php heredoc

$output = <<<HTML
	<p>Lorem ipsum dolor sit amet consectetur<p>
	<a href="{$foobar}">click here</a>
HTML;
Posted by: Guest on March-13-2020
1

heredoc php

$str = <<<MYTEXT
This is a
demo message
with heredoc.
MYTEXT;
 
echo $str;
Posted by: Guest on December-17-2020

Browse Popular Code Answers by Language