Hello,
see the slight difference between:
echo <<<EOT
<table border=\"1\" cellpadding=\"1\" cellspacing=\"0\">
<td class=\"h\" colspan=\"7\" align=\"center\">$MonthNames[$this->MonthToShow] $this->YearToShow</td>
<tr>
EOT;
and:
echo <<<EOT
<table border=\"1\" cellpadding=\"1\" cellspacing=\"0\">
<td class=\"h\" colspan=\"7\" align=\"center\">$MonthNames[1] $this->YearToShow</td>
<tr>
EOT;
The second one works, while the frist one gives:
Parse error: parse error, expecting `\']\'\' in /home/yves/projects/php/calendars/calendar_class.php on line 87
What\'s the matter?
yves