Re: [PHP] Bare Strings, are they deprecated?

2011-01-14 Thread Evil Son
On Sat, Jan 15, 2011 at 2:19 AM, Richard Quadling wrote: > > error_reporting=-1 > display_errors=On > > will turn on everything and tell you about it. Yes I see them now! Ghastly! > Alternatively, take a look at the setting of php.ini-development. This > is the recommended settings for developin

Re: [PHP] Bare Strings, are they deprecated?

2011-01-14 Thread Richard Quadling
On 14 January 2011 16:06, Evil Son wrote: > On Sat, Jan 15, 2011 at 1:51 AM, la...@garfieldtech.com > wrote: >> Assuming that by "bare strings" you mean: >> >> $foo[bar] = 'baz'; >> >> as opposed to: >> >> $foo['bar'] = 'baz'; > > Yes, indeed. > >> That is generally considered very bad form in PH

Re: [PHP] Bare Strings, are they deprecated?

2011-01-14 Thread Evil Son
On Sat, Jan 15, 2011 at 1:51 AM, la...@garfieldtech.com wrote: > Assuming that by "bare strings" you mean: > > $foo[bar] = 'baz'; > > as opposed to: > > $foo['bar'] = 'baz'; Yes, indeed. > That is generally considered very bad form in PHP.  That throws an E_NOTICE > error level, and therefore sl

Re: [PHP] Bare Strings, are they deprecated?

2011-01-14 Thread Richard Quadling
On 14 January 2011 15:51, la...@garfieldtech.com wrote: > (I now expect to get flamed by someone who uses them but is insulted that I > am calling them not respectable.) http://www.alibaba.com/product-tp/103358451/FIRE_RETARDANT_SUIT_AND_COVERALL/showimage.html I'd lend you mine. If I had one.

Re: [PHP] Bare Strings, are they deprecated?

2011-01-14 Thread la...@garfieldtech.com
Assuming that by "bare strings" you mean: $foo[bar] = 'baz'; as opposed to: $foo['bar'] = 'baz'; That is generally considered very bad form in PHP. That throws an E_NOTICE error level, and therefore slows down your code (if only by a small amount) for the error handling. Of course, if you