I'd like to interpolate some variables into a HEREDOC string, but it is giving me errors, the code is this:
$htmlViewAppointments .= <<<EOT
<tr><td>$obj['Year']</td></tr>
EOT;
I'd like to interpolate some variables into a HEREDOC string, but it is giving me errors, the code is this:
$htmlViewAppointments .= <<<EOT
<tr><td>$obj['Year']</td></tr>
EOT;
Use:
$htmlViewAppointments .= <<<EOT
<tr><td>{$obj['Year']}</td></tr>
EOT;