Reply to Re: Variables Outside Functions

Your name:

Reply:


Posted by Berislav Lopac on 06/02/05 13:50

Angelos wrote:
> ANd the question is : DO I have to pass all the variables that I use
> in the function when I call it ?

As James said, you don't; just use the global keyword.

However, it is not a good practice; it's better to pass them by reference as
a parameter.

Berislav

[Back to original 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

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