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]
|