class Studen { const NAME = "张三"; public function Show() { echo Studen::NAME; } } $stu = new Studen(); $stu->Show();
输出:
张三
阅读: 19668
阅读: 16789 评论:1
阅读: 15869
阅读: 15724
阅读: 15388
阅读: 15145
扫扫关注微信