Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #5715

Re: What happens when i dont use the semicolon for closing my statement

From hakimserwa@gmail.com
Newsgroups comp.lang.php
Subject Re: What happens when i dont use the semicolon for closing my statement
Date 2012-04-25 03:05 -0700
Organization http://groups.google.com
Message-ID <13584425.1627.1335348301287.JavaMail.geo-discussion-forums@vbqq1> (permalink)
References <9235265.1709.1335343399060.JavaMail.geo-discussion-forums@vbbgl4> <4f97c1f7$0$6919$e4fe514c@news2.news.xs4all.nl>

Show all headers | View raw


On Wednesday, April 25, 2012 11:20:55 AM UTC+2, Erwin Moller wrote:
> On 4/25/2012 10:43 AM, hakimserwa@gmail.com wrote:
> > I am new to php and i am trying to learn so i would appreciate if i can cleary understand how the php syntax work by knowing how to do it and what happens if i dont do something.
> >
> > In this case i would like to know what happens i i dont close my statement with a semicolon.
> 
> Why don't you try?
> 
> Test1:
> <?php
> $name = "hakim";
> echo $name;
> ?>
> 
> Test2:
> <?php
> $name = "hakim"
> echo $name
> ?>
> 
> And test them.
> 
> Also, make sure you have error reporting on when learning the language, 
> or developing.
> 
> Regards,
> Erwin Moller
> 
> -- 
> "That which can be asserted without evidence, can be dismissed without 
> evidence."
> -- Christopher Hitchens


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.

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

What happens when i dont use the semicolon for closing my statement hakimserwa@gmail.com - 2012-04-25 01:43 -0700
  Re: What happens when i dont use the semicolon for closing my statement Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-04-25 11:20 +0200
    Re: What happens when i dont use the semicolon for closing my statement hakimserwa@gmail.com - 2012-04-25 03:05 -0700
      Re: What happens when i dont use the semicolon for closing my statement Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-04-25 12:45 +0200
      Re: What happens when i dont use the semicolon for closing my statement Captain Paralytic <paul_lautman@yahoo.com> - 2012-04-25 04:04 -0700
      Re: What happens when i dont use the semicolon for closing my statement Redcat <redcat@catfolks.net> - 2012-04-25 13:33 +0000
        Re: What happens when i dont use the semicolon for closing my statement The Natural Philosopher <tnp@invalid.invalid> - 2012-04-25 15:55 +0100
      Re: What happens when i dont use the semicolon for closing my statement richard <member@newsguy.com> - 2012-04-25 21:24 -0400
        Re: What happens when i dont use the semicolon for closing my statement Jerry Stuckle <jstucklex@attglobal.net> - 2012-04-25 22:29 -0400
          Re: What happens when i dont use the semicolon for closing my statement richard <member@newsguy.com> - 2012-04-25 22:59 -0400

csiph-web