What's foo?
Moderator: General Moderators
-
impulse()
- Forum Regular
- Posts: 748
- Joined: Wed Aug 09, 2006 8:36 am
- Location: Staffordshire, UK
- Contact:
What's foo?
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?
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
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?