Correction status:unqualified
Teacher's comments:没有用到多级空间, 看清作业要求
jz.php
<?php //namespace one; spl_autoload_register('myAutoLoad', true, true); function myAutoLoad($className){ include "{$className}.php"; } $space = new space(); echo $space->get();
点击 "运行实例" 按钮查看在线实例
space.php
<?php //namespace one\two; class space { function get() { echo space::class.'加载成功了'; } } //$space=new space; //echo $space->get();
点击 "运行实例" 按钮查看在线实例