Posted by ragearc on 09/12/07 18:47
Yep, I believe global would work. PHP: $myVar = new MyClass(); class OtherClass { private $otherVar; function myMethod() { global $myVar; $this->otherVar = $myVar; } }
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming