Parse error after upgrading to PHP 5.3
- by poer
I have a php code that works well in PHP 5.2 but throwing "Parse error: syntax error, unexpected '}'" after upgrading to PHP 5.3.
When I use echo/print or heredocs to print all the HTML part of the code, the error is gone.
My question is, why this error occurred? Is this mean that in PHP 5.3 we are no longer allowed to put HTML code inside PHP…