NYCPHP Meetup

NYPHP.org

[nycphp-talk] Best practices for naming conventions & coding style?

lists at nopersonal.info lists at nopersonal.info
Tue Apr 28 23:10:05 EDT 2009


Ajai Khattri wrote:
> On Tue, 28 Apr 2009, lists at nopersonal.info wrote:
>
>   
>> Re your friend, yikes! I know what you mean about using $counter. I
>> figured out that $i or $n stands for an integer, but it still throws me
>> off sometimes when I see something like $l in someone's example code
>> (below)... what is the "l" supposed to stand for? Or does it depend on
>> the context?
>>     
>
> Its mainly a historical thing. The same way every first program says 
> 'Hello World'. Even when I was a kid learning BASIC, popular programming 
> books still used i, j and k (or I%, J% and K% in BBC BASIC :-)
>   

Ahhh, okay. Thanks.

Bev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20090428/fdb989bf/attachment.html>


More information about the talk mailing list