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

From: Date: Tue, 23 Aug 2005 16:59:24 +0000
Subject: Re: [PEPr] Comment on File Formats::File_Karma
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-39512@lists.php.net to get a copy of this message
6.) Done, despite me hating $line{0} ... I think it's less readable, though it is faster. I digress.
Please use $line[0] instead.
I'm thinking I'll leave it as $line{0}, though I might switch that to substr() for readability. Is $line an array? Is it a string? Who knows! Using $line[0] is a bit ambiguous. In fact, it appears the PHP docs use $line{0} so that's what I'll use. http://www.php.net/manual/en/language.types.string.php --Joe
--Justin Patrin
-- Joseph C. Stump joe@joestump.net http://www.joestump.net

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