These strings are frequently used as either the values of or names of a variable, especially in PHP (and, I think, other languages).
Can anyone explain why, or explain their origin?
These strings are frequently used as either the values of or names of a variable, especially in PHP (and, I think, other languages).
Can anyone explain why, or explain their origin?
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
See the Jargon File entry on foo.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
djr23 what you talking about ?
Interesting, Twey. I guessed as much, though I'm still not sure really why. I guess it's just random enough that it should never conflict with anything?
I'm talking about the tendency to use "foo" and "bar" in example scripts and such.
See:
http://www.dynamicdrive.com/forums/s...1&postcount=62 (DimX's signature)
http://www.php.net/manual/en/function.echo.php (Look at the example code, after the first few lines)
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
foo bar is from a WWII (or other war) acronym (actually FUBAR):
F[deleted]'ed Up Beyond All Recognition
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
As stated in the Jargon File, not true: references to "foo" exist from before the earliest known reference to FUBAR.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Whatever, I thought the question was on foo bar as so often used together as stock variable names in coding. I'm sure that comes from the war reference since they are so often paired. Ever hear the one about the foo bird?
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks