0
return
<<< EOT
<input type="text" name="questao{$this->numQuestao}" value="<?php echo $questao{$this->numQuestao}?>"/>
EOT;
I needed to print this in my file html
: <?php echo $questao{$this->numQuestao}?>
with the $
, but you’re making this mistake:
Parse error: syntax error, unexpected end of file
If I quote, it would work:
return
'value="<?php echo $questao'.$this->numQuestao.'">';
you want it to be "printable" the php code, right?
– Daniel Omine
Insert double quotes at the beginning of the expression heredoc, to keep it that way :
<<<'EOT'
.– Edilson
the closing tag
EOT;
nay may have no characters on the same line before, including spaces and tabs– Pedro Sanção