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

Home » Imported messages » comp.lang.php » When do I use {}?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: When do I use {}? [message #169536 is a reply to message #169533] Fri, 17 September 2010 11:29 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 9/17/2010 5:36 AM, Erwin Moller wrote:
> On 9/17/2010 11:28 AM, The Natural Philosopher wrote:
>> Marious Barrier wrote:
>>> Curly brakets just wrap code... if they are after a control
>>> statement... like an if, a do, a while, an each, a foreach, switch or
>>> others... they determine the code which is going to be executed when
>>> necessary.
>>>
>>
>> Strictly they are BLOCK statement delimiters.
>>
>>
>> so if($something)
>> {
>> //then this block
>> ..
>> ..
>>
>> .} //end if
>> and so on.
>>
>> Basically the way PHP does a GOTO without using a GOTO :-)
>
> AAARGH!
> Stop that please please.
>
> If you keep bringing that GOTO up in here I'll have to track you down,
> find your house, and put a VIC20 through your throat for every time you
> used that word!
> That is a joke, don't worry. I am not a violent man, and would never do
> such things to a VIC20s.
>
> Regards,
> Erwin Moller
>
>
>>
>>
>>> On 09/16/2010 10:13 PM, bruceaj wrote:
>>>> I have code samples where some variables are wrapped in {} (curly
>>>> brackets.) My problem is that I can find anything in the documentation
>>>> when they can be uses.
>>>>
>>>> Can someone tell me or point me to some documentation??
>>>>
>>>> Thanks...
>>>>
>>>> Bruce
>
>

Erwin,

Don't bother. TNP has no idea what structured programming (or any other
programming, for that matter) is about. He just hacks out code until he
gets a half-assed correct result.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OOP, classes and databases
Next Topic: @sessionstart()
Goto Forum:
  

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

Current Time: Sun Oct 20 13:51:37 GMT 2024

Total time taken to generate the page: 0.04731 seconds