摘要: 正文 在PHP5.3中,有两种方法可以定义常量: 使用const关键字使用define()方法 const FOO = 'BAR... 阅读全文
posted @ 2019-07-15 18:10 码农编程进阶笔记 阅读(120) 评论(0) 推荐(0)
摘要: 正文 在PHP5.3中,有两种方法可以定义常量: 使用const关键字 使用define()方法 const FOO = 'BAR'; define('FOO','BAR'); 这两种方式的根本区别在于const会在代码编译时定义一个常量,而define则是在代码运行时才定义一个常量。这就使得con 阅读全文
posted @ 2019-07-15 18:10 码农编程进阶笔记 阅读(395) 评论(0) 推荐(0)
返回顶部 有事您Q我