PHP reports “parse error: syntax error, unexpected T”_ The solution of “variable”

When I encountered this problem at the beginning of my learning process, I should have added — at the end of the 29th behavior.
The error was reported on line 30.
Syntax error, unexpected T_VARIABLE is a common error in PHP development, and also the lowest level error, if you see the following error:
Parse error: syntax error, unexpected T_VARIABLE in D:\test\controllers\admin.php on line 30
This error is caused by string spelling and often the omission of a “; “at the end of a sentence. As a result of. So you need to check the string spelling of this line carefully, and the problem will be solved.

Read More: