Page 1 of 1

What's foo?

Posted: Wed Sep 13, 2006 11:09 am
by impulse()
I've seen $foo a lot in PHP scripts but what's special about it? Is it just a common variable name when nothing good comes to mind?

Posted: Wed Sep 13, 2006 11:12 am
by volka

Posted: Wed Sep 13, 2006 11:15 am
by Christopher
Yes, Foo and Bar are names used as placeholder names in discussions.

Posted: Wed Sep 13, 2006 11:19 am
by Luke
If you really think about it, foobar is a necessity in programming examples. If you just used whatever came to mind, people may wonder what the value is supposed to be... where it came from, etc. For example... I used to use $poo and $pee where I now use $foo and $bar. These variables probably would confuse you if I put them in an example, right?