What common syntax errors can lead to an "Unexpected T_VAR" error in PHP?

The "Unexpected T_VAR" error in PHP typically occurs when there is a syntax error related to variable usage. This error is commonly caused by missing semicolons at the end of lines, incorrect variable naming conventions, or using variables inappropriately within strings. To solve this issue, carefully review the code for any missing or misplaced variables, ensure proper variable declaration and usage, and check for any syntax errors that may be causing the problem.

// Incorrect code leading to "Unexpected T_VAR" error
$var1 = "Hello";
$var2 = "World"
echo $var1 $var2;
```

```php
// Corrected code without syntax errors
$var1 = "Hello";
$var2 = "World";
echo $var1 . $var2;