var $bind = 'text'; var $storage =''; function onText($str) { // object not detected echo $this->storage->testvar; // this works echo findPlugin('testfind1.php',0)->testvar; } function startup(){ $this->storage =& findPlugin('testfind1.php',0); }