PHP define还有const:定义常量
除了可以使用 define() 函数之外,还可以使用 const 关键字来定义常量,const 关键字的语法如下: const 常量名 = 常量值; 下面通过示例来演示一下常量的使用: ?php define ( WebSite , C语言中文网 ); const url = http://c.biancheng.net/php/ ; echo Web
除了可以使用 define() 函数之外,还可以使用 const 关键字来定义常量,const 关键字的语法如下: const 常量名 = 常量值; 下面通过示例来演示一下常量的使用: ?php define ( WebSite , C语言中文网 ); const url = http://c.biancheng.net/php/ ; echo Web