GoS*_*ash 3 php variables
我定义了一个常数,
define("TEST", "good");
我现在有 $post = "TEST";
$post = "TEST";
我只想将这个"测试"转换为常量.
例如:echo $post;它应该打印good
$post;
good
dec*_*eze 7
echo constant($post);
http://php.net/constant
归档时间:
13 年,6 月 前
查看次数:
2784 次
最近记录:
9 年,11 月 前