There is a PHP code:
echo <<<TEST Какой то текст, какая то {$value}. Но как вызвать константу {CONST} TEST; Inside heredoc, you really need to refer to the constant. How to do it. As in the example it does not work. Tell me please.
$str= <<<TEST Какой то текст, какая то {$value}. Но как вызвать константу %s TEST; echo sprintf($str, CONST); Source: https://ru.stackoverflow.com/questions/963154/
All Articles