I use PHP's EOF string to format HTML content without the hassle of having to escape quotes etc. How can I use the function inside this string?
<?php
$str = <<<EOF
<p>Hello</p>
<p><?= _("World"); ?></p>
EOF;
echo $str;
?>
I use PHP's EOF string to format HTML content without the hassle of having to escape quotes etc. How can I use the function inside this string?
<?php
$str = <<<EOF
<p>Hello</p>
<p><?= _("World"); ?></p>
EOF;
echo $str;
?>