RE: Scope issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> In my main file, I am attempting to from with in a function 
> call $language['project_name'] and i am failing... can you 
> offer any advice?
> 

Are there any specific reasons that you need to set the variable to global
scope? 

It's typically recommended that unless you need to, to pass the variable
into the function and return the modified value if you plan on changing it. 

-M

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux