<?php
class Water{
public $exp=0;
public $bye="告辞! ";
public function AddExp(){
$this->exp+=3;
echo "经验+".$this->exp."<br />";
echo $this->bye;
}
}
$water=new Water();
$water->AddExp();
?>
class Water{
public $exp=0;
public $bye="告辞! ";
public function AddExp(){
$this->exp+=3;
echo "经验+".$this->exp."<br />";
echo $this->bye;
}
}
$water=new Water();
$water->AddExp();
?>