Correction status:qualified
Teacher's comments:
补交作业,代码如下:
<?php namespace a\b { class Demo { public $name='我是属于a\b空间的内容'; } use a\Demo as Demo1; echo '调用a:'.(new Demo1)->name.'<br>'; } namespace a { class Demo { public $name='我是属于a空间的内容'; } use a\b\Demo as Demo2; echo '调用a\b:'.(new Demo2)->name; }
点击 "运行实例" 按钮查看在线实例