Topic awaiting preservation: PHP Class hellp (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
posted 05-30-2009 23:54
here is my code code: class Example { public var $a = 1; protected var $b = 2; private var $c = 3; function show_abc(){ echo $this->a; echo $this->b; echo $this->c; } }
|
Nervous Wreck (II) Inmate From: |
posted 05-31-2009 00:03
sorry thanks i realized that i dont need the var when i am using public, protected, and private access modifiers. thanks anyway |