What are common syntax errors in PHP code that can lead to unexpected errors like "Parse error: syntax error, unexpected '$ersteller' (T_VARIABLE)"?

Common syntax errors in PHP code that can lead to unexpected errors like "Parse error: syntax error, unexpected '$ersteller' (T_VARIABLE)" include missing semicolons at the end of lines, mismatched parentheses or braces, and using reserved keywords as variable names. To solve this issue, carefully review the code for any missing or misplaced characters and ensure that variable names are not conflicting with PHP keywords.

// Incorrect code
$ersteller = "John"
echo $ersteller;

// Corrected code
$ersteller = "John";
echo $ersteller;