Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as PHP by Mohamad ( 12 years ago )
class teste {

 private $batata;

 public function setBatata($algo) {

  $this->batata = $algo;

 }

 public function getBatata() {

  return $this->batata;

 }

 public function index(){

  $this->setBatata('teste1');

 }

 public function print(){

  echo $this->getBatata();
 }

}

 

Revise this Paste

Your Name: Code Language: