跳到主要内容
CodeWiki
练习
学习路径
学习方向
速查表
试验场
术语表
AI时代
搜索
⌘K
English
中文
练习
学习路径
学习方向
速查表
试验场
术语表
AI时代
English
中文
练习
/
测验
/
PHP
/
命名空间
文件导入App\Models\Invoice后,设置 $class = "Invoice" 并执行new $class()。PHP会请求哪个名称?
来自命名空间
PHP 8.3.33
进阶
1分钟
文件导入App\Models\Invoice后,设置 $class = "Invoice" 并执行new $class()。PHP会请求哪个名称?
全局名称Invoice
App\Models\Invoice,因为导入会改写字符串
当前命名空间再加App\Models\Invoice
检查
向AI询问这道练习
报告错误
下一道练习
PHP文件中的use Vendor\Mail\Client; 会做什么?
测验
有新版本可用
重新加载