What common syntax errors can lead to unexpected T_STRING errors in PHP code?

Common syntax errors that can lead to unexpected T_STRING errors in PHP code include missing semicolons at the end of lines, mismatched quotes, and unescaped special characters within strings. To solve this issue, carefully check the syntax of your code, especially around string declarations and concatenations.

// Incorrect code with missing semicolon causing T_STRING error
$name = "John"
echo "Hello, $name!";
```

```php
// Corrected code with semicolon added at the end of the line
$name = "John";
echo "Hello, $name!";