质量为本、客户为根、勇于拼搏、务实创新
php定义常量的有甚么方法
在PHP中,定义常量的方法有以下几种:
define("CONSTANT_NAME", "constant_value");
const CONSTANT_NAME = "constant_value";
class MyClass { const CONSTANT_NAME = "constant_value"; }
TOP