Re: put code into a function then the code dead,very strange.

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

 



在 2011-08-02二的 13:33 +0100,Richard Quadling写道:

> It is to do with variable scope.
> 
> http://uk.php.net/manual/en/language.variables.scope.php /
> http://uk.php.net/manual/zh/language.variables.scope.php
> 

Thanks for your useful URL.According to the doc,i must make the var
global by using "$GLOBALS" so that access it in the same page/context.

just a bit unbelievable...HAHA.

-- 
Best regards,
Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)

Using Gmail? Please read this important notice:
http://www.fsf.org/campaigns/jstrap/gmail?10073.


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