By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,885 Members | 1,469 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,885 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.