php - Interpolating variables in HEREDOCs -


this question has answer here:

i'd interpolate variables heredoc string, giving me errors, code this:

$htmlviewappointments .= <<<eot          <tr><td>$obj['year']</td></tr>  eot; 

use:

$htmlviewappointments .= <<<eot          <tr><td>{$obj['year']}</td></tr>  eot; 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -