Class variables messing up

Voidavesta

New Member
consider this code : \[code\]Class Controller_xyz extends Controller{ protected $res=' '; public function action_reg() { $this->res="blah"; $x="blah" echo $this->res; echo $x; }}\[/code\]output : \[code\]bblah\[/code\]why am I not able to change class variable?
 
Back
Top