PHP Parse error: syntax error, unexpected T_STRING
PHP programmers will see error codes during development. One such error is ‘unexpected T_STRING’. This error usually means a semi-colon is missing. The error code will give a line number and it is best to start from there. Then, correct the error and try again. below is an example of the error as it would be displayed in a browser.
Parse error: syntax error, unexpected T_STRING in /home/myaccount/public_html/myfile.php on line 42