RE: [PHP] foo-bar

2001-11-29 Thread Jon Haworth
http://www.tuxedo.org/~esr/jargon/html/entry/foo.html HTH Jon -Original Message- From: Christoph Starkmann [mailto:[EMAIL PROTECTED]] Sent: 29 November 2001 14:54 To: '[EMAIL PROTECTED]' Subject: [PHP] foo-bar BTW... Can anybody tell me where the words foo and bar come from? Thanx

Re: [PHP] foo? bar? wtf?

2001-08-29 Thread Christian Dechery
At 20:11 29/8/2001 +0100, you wrote: >Why is it that every example uses foo and bar. In my head I put these >together to get FUBAR, the meaning of which I won't spell out for Kyle's >benefit. > >Is this what foo and bar refer to? And WHY are they used so extensively? they don't mean anything...

Re: [PHP] foo? bar? wtf?

2001-08-29 Thread Philip Olson
see : http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?query=foo http://foldoc.doc.ic.ac.uk/foldoc/foldoc.cgi?query=bar pretty interesting :) regards, Philip Olson On Wed, 29 Aug 2001, Seb Frost wrote: > Why is it that every example uses foo and bar. In my head I put these > together to get FU

Re: [PHP] foo[bar] _or_ foo['bar'] ?

2001-02-13 Thread Andi Gutmans
tten > >print "Hello there {$client['name']}"; > >Sorry to sound stroppy :) > >Cheers >-- >Phil Driscoll >Dial Solutions >+44 (0)113 294 5112 >http://www.dialsolutions.com >http://www.dtonline.org > > >-Original Message- &g

Re: [PHP] foo[bar] _or_ foo['bar'] ?

2001-02-13 Thread php3
Addressed to: Derek Sivers <[EMAIL PROTECTED]> "Matthias Krehl" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from Derek Sivers <[EMAIL PROTECTED]> Tue, 13 Feb 2001 09:31:29 -0800 > > > >I'd really appreciate a clear statement whether to use better > >$foo

Re: [PHP] foo[bar] _or_ foo['bar'] ?

2001-02-13 Thread Phil Driscoll
iginal Message- From: Derek Sivers <[EMAIL PROTECTED]> To: Matthias Krehl <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Tuesday, February 13, 2001 5:34 PM Subject: Re: [PHP] foo[bar] _or_ foo['bar'] ? > >>I'd really appreciate a

Re: [PHP] foo[bar] _or_ foo['bar'] ?

2001-02-13 Thread Derek Sivers
>I'd really appreciate a clear statement whether to use better >$foo = array('bar' => 'boing'); > doWhatSoEver($foo[bar]); >or >$foo = array('bar' => 'boing'); > doWhatSoEver($foo['bar']); I had heard someone on the list say that it's always best to use quotes, for the same rea

RE: [PHP] foo[bar] _or_ foo['bar'] ?

2001-02-13 Thread PHPBeginner.com
foo['bar']; Unless the array key (or any other kind of key, like these in functions or in SQL statements) is an integer you should insert it between quotes. Let's say that stings should be treated as 'strings' and integers can be treated as integers. Sincerely, Maxim Maletsky Founder, Chief

Re: [PHP] foo[bar] _or_ foo['bar'] ?

2001-02-13 Thread Phil Driscoll
This is the correct format: >doWhatSoEver($foo['bar']); If your error reporting level is set high enough, php will complain about $foo[bar] unless you have defined bar as a constant elsewhere. -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline