I remember once reading that there is an alternative "" that looks like this:

$a = <<READ text jkdsdklvdkl READ; 

But this option does not work, remind how it is correct, please.

    1 answer 1

    This is heredoc, there should be 3 "<", instead of HEREDOC, you can write anything.

     $a = <<<HEREDOC text jkdsdklvdkl HEREDOC; 
    • Thank. But still the question is, where is the mistake, I just can not figure it out? <code> <? php $ str = <<< EOD Example of a line covering several lines using heredoc syntax. EOD; $ fer = "string"; $ string = ereg_replace ($ fer, "", $ str); echo $ string; ?> </ code> - nick777 pm