09/09/2015

Using define in heredoc

10


DEFINE('PREFIX','/holiday');

$const = PREFIX;

echo <<<EOD
<img src=”{$const}/images/hello.png” />
EOD;

About Author Mr.Bazz

Hi thanks for dropping by. Please share the content if you think there is someone who will appreciate it.

Leave A Comment

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