Posted by Floortje on 03/15/07 14:17
Classes are somewhat different. Run this code (maybe fix a minor speling error .. I didn't test) and compare it with your code. class a { public $error1 public function a() { $this->error1='howdy'; } } class b extends a { private function b() { echo $this->error1; } class c { private function c() { global $a echo $a->error1; } } $a=new a $b=new b $c=new c -- Arjen http://www.hondenpage.com
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming