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

From: Date: Tue, 02 Aug 2011 12:45:01 +0000
Subject: Re: put code into a function then the code dead,very strange.
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-314274@lists.php.net to get a copy of this message
在 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.

« previous php.general (#314274) next »