WHAT THE HELL IS A $FOOOOO[bar]

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

User avatar
NewfieBilko
Forum Contributor
Posts: 189
Joined: Sun Jun 06, 2004 6:45 pm
Location: Newfoundland
Contact:

WHAT THE HELL IS A $FOOOOO[bar]

Post 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] ?!?!?!!?!?!?
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

yea just an example. there is a history to it though.... http://www.everything2.com/index.pl?node=fubar
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

alot of languages use foo bar
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

what languages? they are used as examples - like x and y in mathematics
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

i know c++ uses it as one example
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

for what?
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

basic examples like in php...
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

oh, yea, that's what i meant. I thought you meant languages actually use them. sorry!
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post 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. ;)
Image Image
User avatar
NewfieBilko
Forum Contributor
Posts: 189
Joined: Sun Jun 06, 2004 6:45 pm
Location: Newfoundland
Contact:

Post by NewfieBilko »

LOL i like how you put that phice, variable name: foo, value: bar.. lol.. ok, i get the point
jp420
Forum Newbie
Posts: 1
Joined: Fri Jun 18, 2004 1:38 pm

Post by jp420 »

please stop saying 'lol'... you're a coder now, not a fragger.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

interesting choice of first post, jp.
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

jp420 wrote:please stop saying 'lol'... you're a coder now, not a fragger.
LOL!
Image Image
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

ROFL phice!!1one!!eleveN1!

lmfa0, i r so t3h 1337!
User avatar
NewfieBilko
Forum Contributor
Posts: 189
Joined: Sun Jun 06, 2004 6:45 pm
Location: Newfoundland
Contact:

Post by NewfieBilko »

LOL pls dont abuse my lol skillz thx, I am teh L77T thx, k?
Post Reply