Quote:
Originally Posted by xXziroXx
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"
};
randomFunction( foo );
Sorry, can't open RC right now (or anything with a fixed-width font), so they aren't aligned.