非常简单的问题:在PHP中,你什么时候使用
define('FOO', 1);
你什么时候用的
const FOO = 1;
这两者之间的主要区别是什么?
php const constants
const ×1
constants ×1
php ×1