php中const与define的区别
2010-06-17 22:44
323 查看
(1)define不能定义在类中,而const必须定义在类中,并且const必须通过类名::变量名来进行访问;
(2)两者都是不能进行重新赋值。
(2)两者都是不能进行重新赋值。
相关文章推荐
- 解析php中static,const与define的使用区别
- PHP中const和define()定义常量的细节区别
- php中const与define的使用区别 详解
- php const和define的区别(php类中如何定义常量)
- php中const和define的区别
- PHP常量详解:define和const的区别
- php中static、const和define的区别
- php中global,const和define的区别
- 在PHP中定义常量时,const与define的区别
- php const和define的区别(php类中如何定义常量)
- 在php中定义常量时,const与define的区别
- 解析php中const与define的应用区别
- PHP:const和define的区别
- php const和define的区别
- php 中常量定义const和define的区别
- PHP常量详解:define和const的区别
- PHP常量详解:define和const的区别
- php 中const和 define的区别
- php const和define的区别(php类中如何定义常量)
- PHP中const和define()定义常量的细节区别