<?php
$output = <<< END
<table style="display: table;" class="listview rowstyle-rowhighlight" id="resourcegrid">
<thead>
<tr>
<th width="70"></th>
<th style="-moz-user-select: none;" class="sortable fd-column-0"><a class="fdTableSortTrigger" href="#">Name</a></th>
<th style="-moz-user-select: none;" class="sortable fd-column-1"><a class="fdTableSortTrigger" href="#">Contributor</a></th>
<th style="-moz-user-select: none;" class="sortable fd-column-3"><a class="fdTableSortTrigger" href="#">Modified</a></th>
</tr>
</thead><tbody>
END;
echo $output;
When I run it reports :
Parse error: parse error on line 2
But I don’t see anything abnormal.
I believe the problem is that you should use
$output = <<<ENDinstead of$output = <<< END(Note the lack of space)Make sure that there is no space before or after the
ENDeven a single extraneous space could cause problems. Looking at the code you posted, you seem to have a space before and after theEND.From the php website: