Hi !

I come to realize how useful is to use EOF with the echo()

however I have many constants that i'd like to use within my echo <<<EOF statement, this dont show on the page

i already tryed

define('_woot','this should display');
echo <<<EOF
{_woot}
EOF;

    Unfortunately, constants cannot be interpolated within a quoted string, whether double-quoted or heredoc-quoted ("<<<EOF"). A couple of the many options:

    define("CONSTANT", "a constant value");
    
    // one option:
    echo <<<EOD
    The value of the constant is: 
    EOD;
    echo CONSTANT
    echo <<<EOD
    . You have just seen the value of the constant.
    EOD;
    
    // another option:
    $text = <<<EOD
    The value of the constant is: %s. You have just seen the value of the constant.
    EOD;
    printf($text, CONSTANT);
    
      Write a Reply...