Page 1 of 5

WHAT THE HELL IS A $FOOOOO[bar]

Posted: Wed Jun 16, 2004 1:51 pm
by NewfieBilko
LOL, i have been programming PHP now for a few weeks everyday 8 hours a day.. I must say I love programming , and like this site. I read alot more posts then I write, i will tell ya that.... Anyway, i always see $foo[bar] and foo, lol its <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> me off i dont know what it is, is it jujst an example name? for newbs? WTF IS $foo[bar] ?!?!?!!?!?!?

Posted: Wed Jun 16, 2004 2:02 pm
by magicrobotmonkey
yea just an example. there is a history to it though.... http://www.everything2.com/index.pl?node=fubar

Posted: Wed Jun 16, 2004 2:04 pm
by PrObLeM
alot of languages use foo bar

Posted: Wed Jun 16, 2004 2:06 pm
by magicrobotmonkey
what languages? they are used as examples - like x and y in mathematics

Posted: Wed Jun 16, 2004 2:07 pm
by PrObLeM
i know c++ uses it as one example

Posted: Wed Jun 16, 2004 2:09 pm
by magicrobotmonkey
for what?

Posted: Wed Jun 16, 2004 2:09 pm
by PrObLeM
basic examples like in php...

Posted: Wed Jun 16, 2004 2:10 pm
by magicrobotmonkey
oh, yea, that's what i meant. I thought you meant languages actually use them. sorry!

Posted: Thu Jun 17, 2004 1:41 am
by phice
It's not what certain programming languages use it, it's just an expression for nameing the variable name (foo) and it's value (bar). Just like "Hello World!" is an example to test the programming language's output. ;)

Posted: Thu Jun 17, 2004 6:15 am
by NewfieBilko
LOL i like how you put that phice, variable name: foo, value: bar.. lol.. ok, i get the point

Posted: Fri Jun 18, 2004 1:38 pm
by jp420
please stop saying 'lol'... you're a coder now, not a fragger.

Posted: Fri Jun 18, 2004 1:40 pm
by feyd
interesting choice of first post, jp.

Posted: Fri Jun 18, 2004 2:00 pm
by phice
jp420 wrote:please stop saying 'lol'... you're a coder now, not a fragger.
LOL!

Posted: Fri Jun 18, 2004 2:29 pm
by d3ad1ysp0rk
ROFL phice!!1one!!eleveN1!

lmfa0, i r so t3h 1337!

Posted: Sun Jun 20, 2004 12:00 pm
by NewfieBilko
LOL pls dont abuse my lol skillz thx, I am teh L77T thx, k?