What does the PHP error ‘Parse error in PHP – unexpected T_variable at line x’ means?

Recommended Answers

"Parse error" means you made a typo.

Jump to Post

All 4 Replies

"Parse error" means you made a typo.

Check to make sure you didn't miss a semi-colon, parenthesis, or curly bracket anywhere before the line the error is on.

It means that your code has a syntax error. It could be that you have mis-spelled a word, or function ... or even that you have placed a character where it is not expected ...

it's a syntax error. maybe you mispelled something in your codes or maybe an extra bracket/symbols...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.