|
Posted by Jerry Stuckle on 11/01/07 12:11
Philluminati 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?
>
> 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, PHP variables are untyped.
And no, I don't use Hungarian notation. Rather, I document the code.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|