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 James Williams on 05/05/05 07:17

> 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

 

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

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