摘要: 简要归纳PHP中两个常量定义关键字的区别: 1、define是函数,const是语言结构,PHP编译时const速度快。2、define只能用在类外,const类内类外皆可。3、define定义的常量是全局的,const定义的常量受命名空间限制。4、define可用在条件语句中,const不能。5、 阅读全文
posted @ 2018-09-06 16:44 昊晗远昂 阅读(353) 评论(0) 推荐(0) 编辑