且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

变量类名忽略"use".

更新时间:2022-04-14 19:45:27

您不能使用 转换为变量类名.那是PHP的局限性.

You can not import with use into variable classnames. That is a limitation of PHP.

也请参阅相关问题:

  • Expanding PHP namespace alias to full namespace string
  • Can't get constant from dynamic class using namespaces