php 调取获取所有常量

var_dump(get_defined_constants(true));
原文地址:https://www.cnblogs.com/xm666/p/11439083.html