略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 全局命名空间

2024-04-26

全局命名空间

以下代码结构会进入全局命名空间:

  • functions(函数)

  • classes(类)

  • interfaces(接口)

  • constants(常量,并非类常量)

  • 在函数/方法之外定义的变量

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/userlandnaming.globalnamespace.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3