How can syntax errors impact the functionality of PHP scripts?
Syntax errors can prevent PHP scripts from running correctly as they indicate that there is a mistake in the code structure. These errors need to be fixed before the script can execute properly. To resolve syntax errors, carefully review the code for typos, missing parentheses, semicolons, or curly braces, and ensure that all syntax rules are followed.
// Incorrect code with syntax error
echo "Hello World"
```
```php
// Corrected code without syntax error
echo "Hello World";