Interpolate a constant (not variable) into 'heredoc'

后端 未结 6 1762
梦谈多话
梦谈多话 2020-12-29 01:47

Consider:

The value of my_const is {my_const}.

MYECHO; ?>
6条回答
  •  感动是毒
    2020-12-29 02:04

    You may use the "constant" function.

    for example:

        The value of CONST1 is: {$C('CONST1')}, 
                  and CONST2 is:{$C('CONST2')}.

    MYECHO; ?>

提交回复
热议问题