What are common syntax errors in PHP scripts that can lead to parse errors like "unexpected T_STRING"?
Common syntax errors in PHP scripts that can lead to parse errors like "unexpected T_STRING" include missing semicolons at the end of lines, using single quotes within a string that is already enclosed in single quotes, and using reserved keywords as variable names. To solve this issue, carefully review the code for any missing or misplaced characters, ensure proper quoting of strings, and avoid using reserved keywords as variable names. Example PHP code snippet:
// Incorrect code causing parse error
$var = 'Hello' 'World';
// Corrected code
$var = 'Hello' . 'World';