[PHP] Access parent property from child

2007-08-09 Thread Suprie
dear all ... i have question, i've tried look at google but still can't figured out how to do it... i want access parent property from child object the code was like id; } protected function setId($id) { $this->id = $id; } function getDB() { return $this

Re: [PHP] Access parent property from child

2007-08-09 Thread Suprie
ouch... hey it's work rite now... thanks a lot for your help Edward and Stut, i really apprieciate it... br/// On 8/9/07, Stut <[EMAIL PROTECTED]> wrote: > Suprie wrote: > > function getDB() > > { > > return $this->$db; > > } > &g