PHP 杂项函数
constant() 函数返回常量的值。
</>codeconstant(constant)
注释:该函数仅适用于 class 常量。
</>code<?php//定义一个常量define("GREETING","Hello world!");echo constant("GREETING");?>
constant("GREETING")
输出:
</>codeHello world!
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛