Created
July 1, 2017 05:51
-
-
Save yano3nora/b913a415ff213c95b08d7630c75e7d1f to your computer and use it in GitHub Desktop.
[php: use DEFINE in Heredoc] Attention on old code. #php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define("PATH", "hoge/fuga/foo/bar"); | |
$_ = function ($s) { return $s; }; | |
echo <<<DOC | |
<img src="{$_(PATH)}"> | |
DOC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment