You are here: Re: Variable name length « PHP Programming Language « IT news, forums, messages
Re: Variable name length

Posted by James Blews on 10/19/05 07:25

I don't see why not. However, usually, 34 characters is not all that
readbable. Some shorthand can be used for things that ANY programmer would
know (jpg, img, db, eml, tbl, etc.).

The biggest concerning is value length(characters to 255, etc.).

Hope it helps,
Jim

<larry@portcommodore.com> wrote in message
news:1129690133.793101.150320@z14g2000cwz.googlegroups.com...
> I'm working on a new project that I want to get as human readable as
> possible, and was wondering what the constraint on variable naming does
> PHP have.
>
> Can I have a variable like:
>
> $provider_center_openings_infant_ft
>
> (34 characters if you want to know)
>
> Also any idea if there is a similar limit to MySQL or Postgre field
> names.
>
> I've been coding for decades back when I had a limit of 2 characters
> for variables on the old Commodore VIC-20, it's kind of hard to get
> used to all this room. I've tried to find my answer in TFMs, but
> nothing really goes into that metric, I figure you PHP code masters
> would know of any (or possible pitfalls) if it bit you once.
>
> Thanks for any insight,
> Larry
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация