I want to use { in a string which is being stored in heredoc in PHP, how to use it? how to escape?
echo $heredoc = <<<HTML
<p>
Welcome {$myname}
</p>
HTML;
The output is Welcome Aayush Sinha
But the output required is Welcome {Aayush Sinha}
.