Reply to Re: Variables Outside Functions

Your name:

Reply:


Posted by James on 06/02/05 13:45

On Thu, 2 Jun 2005 10:23:15 +0000 (UTC), "Angelos"
<angelos@redcatmedia.net> wrote:

>ANd the question is : DO I have to pass all the variables that I use in the
>function when I call it ?
>I don't want to set the variables inside the functions because they are used
>by other functions as well
>
>May I have your lights PLS ?

you can use the global keyword in your function.
i.e
global $variable1,$variable2;
This means that your function will refer to the global version.
more here:
http://uk.php.net/manual/en/language.variables.scope.php

[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

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