Connecting Tech Pros Worldwide Help | Site Map

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

Janwillem Borleffs
Guest
 
Posts: n/a
#1: Jul 17 '05
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



Janwillem Borleffs
Guest
 
Posts: n/a
#2: Jul 17 '05

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


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



Closed Thread