Hi everybody,

In the code below are three x-char in the function parent_test of the class
browser. What do I have to type there when I want to get the var $test from
the session-object.

class session {
 var $test="TEST";
 var $browser;

 function init() {
  $this->browser = new browser;
 }
}

class browser {
 function parent_test() {
  return xxx;
 }
}

I tried $this->parent->test but it doesn't work. Can anybody help me?

Rolf

///////////////////////////////////////////////
/     640K ought to be enough for anybody.    /
/               Bill Gates '81                /
///////////////////////////////////////////////

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

Reply via email to