FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » What happens when i dont use the semicolon for closing my statement
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: What happens when i dont use the semicolon for closing my statement [message #177878 is a reply to message #177874] Wed, 25 April 2012 09:20 Go to previous messageGo to previous message
Erwin Moller is currently offline  Erwin Moller
Messages: 228
Registered: September 2010
Karma:
Senior Member
On 4/25/2012 10:43 AM, hakimserwa(at)gmail(dot)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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Download now
Next Topic: Usage of named entities (HTML) in imagettftext
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 19:47:00 GMT 2024

Total time taken to generate the page: 0.04364 seconds