ホームページ >バックエンド開発 >PHPチュートリアル >成员属性在两个步骤之间无法共用
成员属性在两个方法之间无法共用
<br />class a {<br /> public $a=0;<br /> public fucntion ax(){<br /> $this->a='111';<br /> }<br /><br /> public fucntion bx(){<br /> echo $this->a;<br /> }<br />}<br />