PHP 杂项函数
constant() 函数返回常量的值。
constant(constant)
<?php //定义一个常量 define("GREETING","Hello world!"); echo constant("GREETING"); ?>
输出:
Hello world!
©2020 IT自习室京ICP备20010815号