PHP中想过获取系统内置的所有常量吗?

print_r(get_defined_constants(true));

OK!这样就可以了,赶紧去试试吧

原文地址:https://www.cnblogs.com/wenxinphp/p/5909080.html