|
Posted by Rik Wasmus on 11/02/07 01:57
On Fri, 02 Nov 2007 02:51:59 +0100, Jerry Stuckle =
<jstucklex@attglobal.net> wrote:
> Norman Peelman wrote:
>> 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 ca=
n
>>> be done.
>>>
>>> int $tablename =3D 0;
>>>
>>> rather than
>>>
>>> var $tablename =3D 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?
>>>
>> You could name your variables to match the data you expect them to=
=
>> hold, for instance:
>> $bTemp --> boolean
>> $sTemp --> string
>> $iTemp --> integer
>> $fTemp --> float
>> ...it may help you visually.
>> Norm
>>
>
> Which is Hungarian notation - and something most of us don't use in PH=
P.
>
Hmm, maybe a deviation here, I see this more often then not..
-- =
Rik Wasmus
[Back to original message]
|