Re: [suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP] Simple question: How to declare Vars in PHP? (I know it's not necessary, but I still want to know)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> No
> 
> You don't declare variables in PHP.  You just start using them.
> 
> Perhaps you mean assign?  Since your example of
> 
>   var = variableName;
> 
> is actually an assignment in Javascript.
> 
> In PHP you simply do:
> 
>  $one_var = $another_var;
> 
> -Rasmus

You are however, when dealing with OOP and classes required to declare
you're variable, right?


-- 
jamwil.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux