小白教程
所有教程
关于
Search
172.69.7.193
172.69.7.193
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func misc constant”的源代码
本页内容
上一节:
Func_misc_connection_status
下一节:
Func_misc_define
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:constant()}}[[Category:PHP 杂项函数参考手册|3]] = PHP constant() 函数 = [[:Category:PHP 杂项函数参考手册]] 返回一个常量的值: <sample title="" desc="" lang="php" hererun="1"> <?php //define a constant define("GREETING","Hello you! How are you today?"); echo constant("GREETING"); ?> </sample> == 定义和用法 == constant() 函数返回一个常量的值。 '''注释:''' 该函数也适用于 class 常量。 == 语法 == <pre> constant(constant) </pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | constant | 必需。规定要检查的常量的名称。 |} == 技术细节 == {| class="table table-striped table-hover" | 返回值: | 返回常量的值,如果常量未定义则返回 NULL。 |- | PHP 版本: | 4+ |} [[:Category:PHP 杂项函数参考手册]]
返回至“
Func misc constant
”。
上一节:
Func_misc_connection_status
下一节:
Func_misc_define