You are here: Re: variables type « PHP Programming Language « IT news, forums, messages
Re: variables type

Posted by fletch on 04/12/06 12:49

I use a notation, whose name I can't remember, to show what type the
variable should be.

$iInt
$aArray
$bBool
$mMixed - could be anything
$sString
$oObj

so I can do loops like
while(list($sFieldName,$aFieldDef)=each($aFields)){}

Also, some regulalry used objects are given their own prefix as opposed
to a general 'o'

Checking function declarations becomes much easier also.

 

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

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