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

From: Date: Tue, 23 Aug 2005 17:32:47 +0000
Subject: Re: [PEPr] Comment on File Formats::File_Karma
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-39515@lists.php.net to get a copy of this message
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. " -Philippe

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