phpクラス属性付与疑惑
816 ワード
テストコード:
これは間違っています.どうしてですか.
<?php $a = new controller; $a->test(); class controller{ public $menuList = time(); public function test(){ echo $this->menuList; } } ?>
これは間違っています.どうしてですか.