At 13:35 5-3-03, you wrote:
can you assign global value in a class like:

class test{

global $arr;

}

anyone?
try! :)
if it does not work in this place, try setting it in the constructor function, which is a function in the class with the same name as the class,



class test{
var $test_arr;

function test() {gobal $arr; $this->test_arr=$arr; //or maybe even $this->test_arr=&$arr; }


}


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



Reply via email to