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