What are common debugging techniques to identify PHP errors, such as unexpected syntax errors?
One common debugging technique to identify unexpected syntax errors in PHP is to carefully review the code for any missing or misplaced punctuation marks, such as semicolons, parentheses, or curly braces. Additionally, using an integrated development environment (IDE) with syntax highlighting can help pinpoint syntax errors by visually highlighting them in the code.
```php
// Incorrect code with missing semicolon
$name = "John"
echo "Hello, $name!";
```
In the example above, the missing semicolon after the variable assignment will result in a syntax error. Adding the semicolon after `$name = "John"` will fix the issue.