yano3nora
7/1/2017 - 5:51 AM

[php: use DEFINE in Heredoc] Attention on old code. #php

[php: use DEFINE in Heredoc] Attention on old code. #php

define("PATH", "hoge/fuga/foo/bar");
$_ = function ($s) { return $s; };

echo <<<DOC
    <img src="{$_(PATH)}">    
DOC;