467,883 Members | 1,339 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,883 developers. It's quick & easy.

[FAQ] Parse/Syntax error, unexpected $ or $end

Q: I'm getting an unexpected $ or $end parse/syntax error, what's causing
this?
A: This is caused when an expression is started with an opening brace, but
the closing brace is omitted.

Examples:

if ($condition) {
....
// No closing brace; the error is thrown

function foo () {
....
// No closing brace; the error is thrown

Jul 17 '05 #1
  • viewed: 2005
Share:
1 Reply
Grammar revision:

Q: I'm getting an unexpected $ or $end parse/syntax error, what's causing
this?
A: This is caused by an expression which is defined with an opening brace,
while
the closing brace is omitted.

Examples:

if ($condition) {
....
// No closing brace; the error is thrown

function foo () {
....
// No closing brace; the error is thrown

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by MrMoon | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.