Thread: About $foo

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    65
    Rep Power
    15
    I am sorry because i am new with this php.

    What is $foo, a variable or a function?

    I have read throught many tutorial and i find out some are using $foo.....
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    49
    Rep Power
    15
    $foo is just a variable
  4. #3
  5. No Profile Picture
    worshipper of DOT
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Halmstad, Sweden
    Posts
    35
    Rep Power
    15
    "foo" is a dummy-name used for variables, like "fee", "bar" and "foobar" and a zillion other silly names ... it's a bit of hacker-esque humor, i guess ..

    Read "the Hacker Dictionary" for the full story ..
  6. #4
  7. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    Ah, c'mon, can't we tell the story here?

    foobar - a bastardization of the acronym FUBAR

    FUBAR - an acronym rumored to have begun in the US military in the first half of the 20th century. F**ked Up Beyond All Recognition

Similar Threads

  1. any other ways to improve this code?
    By ETZ in forum PHP Development
    Replies: 9
    Last Post: January 5th, 2004, 11:36 PM
  2. convert string to an int
    By wannabe in forum PHP Development
    Replies: 3
    Last Post: June 18th, 2003, 04:19 PM
  3. 1 field or 30 fields? Efficient Searching
    By bagger in forum PHP Development
    Replies: 7
    Last Post: June 11th, 2003, 03:06 AM
  4. More short-circuit math operations??
    By christo in forum PHP Development
    Replies: 9
    Last Post: April 6th, 2002, 04:20 AM

IMN logo majestic logo threadwatch logo seochat tools logo