What are common errors to look out for when writing PHP code?

One common error to look out for when writing PHP code is forgetting to properly close parentheses, brackets, or quotes. This can lead to syntax errors and cause your code to not run as expected. To solve this issue, always double-check that you have closed all parentheses, brackets, and quotes in your code.

// Incorrect code with missing closing parenthesis
echo "Hello, World!;
```

```php
// Corrected code with proper closing parenthesis
echo "Hello, World!";