php 中的 const static define 区别
2017-03-23 08:41
369 查看
static :静态属性,可以改变
const: 定义常量,禁止改变 ,一般在 类内使用
define 定义常量,一般类外,用来定义全局常量
const: 定义常量,禁止改变 ,一般在 类内使用
define 定义常量,一般类外,用来定义全局常量
相关文章推荐
- 解析php中static,const与define的使用区别
- 解析php中static,const与define的使用区别
- 解析php中static,const与define的使用区别
- php中static、const和define的区别
- php const和define的区别(php类中如何定义常量)
- PHP常量详解:define和const的区别
- php静态变量define,static,const
- (转载)php中const与define的使用区别详解
- php中const与define的使用区别 详解
- php中const与define的使用区别 详解
- php中const与define的使用区别 详解
- php中const与define的使用区别
- php中const与define的使用区别
- PHP中的一些关键字(const static define 等等)
- php中const与define的使用区别 详解
- php 中const和 define的区别
- php中const与define的使用区别
- php中const与define的使用区别
- PHP中常量以及const与define的区别
- php const和define的区别(php类中如何定义常量)