常量抛出已经定义的错误 ErrorException:Constant XXX_XXX已定义

定义常量值先做判断

 if(!defined('constant'))define('constant','value'); 
posted @ 2020-11-04 00:15  caibaotimes  阅读(141)  评论(0编辑  收藏  举报