What are some common causes of parse errors in PHP scripts and how can they be resolved?

Common causes of parse errors in PHP scripts include missing semicolons at the end of lines, mismatched parentheses or curly braces, and syntax errors such as using a reserved keyword as a variable name. To resolve these issues, carefully review your code for any syntax errors and ensure that all necessary punctuation marks are correctly placed. Example:

// Incorrect code with missing semicolon
$name = "John"
echo "Hello, $name!"; // Missing semicolon

// Corrected code with semicolon added
$name = "John";
echo "Hello, $name!";