Re: What happens when i dont use the semicolon for closing my statement [message #177893 is a reply to message #177890] |
Wed, 25 April 2012 14:55 |
The Natural Philosoph
Messages: 993 Registered: September 2010
Karma:
|
Senior Member |
|
|
Redcat wrote:
> On Wed, 25 Apr 2012 03:05:01 -0700, hakimserwa wrote:
>
>> Parse error: syntax error, unexpected '}', expecting ',' or ';' in
>> C:\xampp\htdocs\hello.php on line 13
>>
>> how do i read this error and undcerstan what it means so next time in
>> can be able to solve it so quickly.
>
> In this case take a look at line 13 (though with PHP error reporting -
> with any language's error reporting, actually - the error might not
> actually be on the line mentioned in the report). If you intentionally
> left off the semicolon as was suggested in a previous post, to see what
> would happen, then the error message is saying "Hey, you left something
> off!". The parser was expecting to see a ',' or a ';' but it found a '}'
> instead.
>
> If this error message doesn't seem to jibe with what you expect, then
> post the entire php file so we can look at it and we'll figure out what
> the error was.
>
Or alternatively, don't program (in PHP) and wait for a language that
can intuitively decide 100% correctly what you really meant from what
you actually said.
> Redcat
--
To people who know nothing, anything is possible.
To people who know too much, it is a sad fact
that they know how little is really possible -
and how hard it is to achieve it.
|
|
|