Getting a parse error in my code - what am I missing? or Why am I seeing a parse error and how do I f

20 Replies, 1464 Views

Oh man, parse errors are the worst. That "unexpected '}'" usually means you've got an extra curly brace *somewhere* before line 42.

Try collapsing your code blocks in your editor (if it supports it)—sometimes hiding chunks makes the rogue brace stand out.

Also, paste your code into a linter like [PHP Code Checker](https://phpcodechecker.com/)—it’s saved me *so* many times.

Messages In This Thread



Users browsing this thread: 1 Guest(s)