Thread: Curiosity...
View Single Post
  #5  
Old 08-12-2008, 04:35 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by xXziroXx View Post
The only occasion I add ugly spaces like that, is if I have an array within two (), such as:

PHP Code:
randomFunction( { "Foo""Bar""Baz" } ); 
EDIT: Actually, when I scan through my scripts, I haven't done that for a looooong time. It seems I do like this:

PHP Code:
randomFunction({ "Foo""Bar""Baz" }); 
PHP Code:
temp.foo = {
                  
"Foo"// Probably wouldn't do this for a short list like this, mainly for multi-dimensional arrays.
                  
"Bar",
                  
"Baz"
                
};
randomFunctionfoo ); 
Sorry, can't open RC right now (or anything with a fixed-width font), so they aren't aligned.
__________________
Reply With Quote