Most voted "heredoc" questions
3 questions
Sort by count of
-
31
votes2
answers1282
viewsWhat does <<< EOH in PHP do?
I see it in several third-party classes. Remembering that the closure is usually the EOH, but without <<<
-
2
votes2
answers80
viewsIs it possible to use Heredoc with special characters in an array?
I have a multidimensional array, as the example below shows, but I wonder, if I can use a Heredoc on it, would it be possible? I could include special characters not escaped, if it is possible to…
-
1
votes2
answers674
viewsCan you use a variable that’s inside the for?
For example. I am working with Heredoc and whenever I need to do a for, I have to close Heredoc to do the for then open the mentioned tag again. Is there any way to query a variable within the is…