Reply to Re: Define variables with a type

Your name:

Reply:


Posted by C. (http://symcbean.blogspot.com/) on 11/01/07 16:12

On 1 Nov, 12:08, Philluminati <Phillip.Ross.Tay...@gmail.com> wrote:
> I've been looking on the Internet and I can't seem to see any one
> specifying a variable with a type. Will someone please tell me it can
> be done.
>
> int $tablename = 0;
>
> rather than
>
> var $tablename = 0;
>
> Is it possible?

No - but if you can't understand dynamic typing and think strong
typing will help, look at PHPLint.

>
> If not, do you all go back to using hungarian notation in order to
> know what data types your working so you don't accidently set false
> and true against a flag which is supposed to 0 and -1?

No. I found out how dynamic typing worked and learned to use it
effectively.

C.

[Back to original 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

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