Re: [PEPr] Comment on File Formats::File_Karma

From: Date: Tue, 23 Aug 2005 18:07:50 +0000
Subject: Re: [PEPr] Comment on File Formats::File_Karma
References: 1 2 3 4 5 6  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-39519@lists.php.net to get a copy of this message
On 8/23/05, Philippe Jausions <Philippe.Jausions@11abacus.com> wrote: > Justin Patrin wrote: > > >On 8/23/05, Philippe Jausions <Philippe.Jausions@11abacus.com> wrote: > > > > > >>Justin Patrin wrote: > >> > >> > >>>On 23 Aug 2005 05:37:35 -0000, Joe Stump <pear@joestump.net> wrote: > >>> > >>> > >>>>Joe Stump (http://pear.php.net/user/jstump) has commented on the proposal for > >>>>File Formats::File_Karma. > >>>> > >>>>Comment: > >>>> > >>>>6.) Done, despite me hating $line{0} ... I think it's less readable, > >>>>though it is faster. I digress. > >>>> > >>>> > >>>Please use $line[0] instead. > >>> > >>> > >>If you're using PHP3 ;-) > >> > >> > >No, it's just more clear. It's the same syntax that other languages > >use. IMHO the {} syntax is really unneeded.... > > > Per PHP-documentation (http://us3.php.net/types.string) > > "String access and modification by character > > Characters within strings may be accessed and modified by specifying the > zero-based offset of the desired character after the string in curly braces. > > Note: For backwards compatibility, you can still use array-brackets > for the same purpose. However, this syntax is deprecated as of PHP 4. " > Argh...I thought it was th eother way around. I still like [] better than {}. Probably because I started with C. -- Justin Patrin

« previous php.pear.dev (#39519) next »