Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001092

Re: [PHP] Variable declaration From: Rasmus Lerdorf (rasmus <email protected>)
Date: 09/27/01

> > What do you mean force declaration? That's what you are doing with this
> > line:
> >
> > $Test = 3;
>
> Nop! This is just starting to use a variable. Something like:
>
> integer $Test;
>
> is declaring a variable. But FAFAIK it's not possible in PHP :(

Like I said, that line does both. It sets the type internally to an
integer and assigns the value.

-Rasmus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>