You are here: Re: [PHP] [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) « PHP « IT news, forums, messages
Re: [PHP] [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)

Posted by Rasmus Lerdorf on 05/05/05 08:49

James Williams wrote:
>>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?

You can, but you don't need to. Try it.

-Rasmus

 

Navigation:

[Reply to this 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

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