PHP defined() 函数
PHP 教程
· 2019-01-27 12:13:03
实例
检查某常量是否存在:
<?php
define("GREETING","Hello you! How are you today?");
echo defined("GREETING");
?>
define("GREETING","Hello you! How are you today?");
echo defined("GREETING");
?>
定义和用法
defined() 函数检查某常量是否存在。
语法
defined(name)
| 参数 | 描述 |
|---|---|
| name | 必需。规定要检查的常量的名称。 |
技术细节
| 返回值: | 如果常量存在,则返回 TRUE,否则返回 FALSE。 |
|---|---|
| PHP 版本: | 4+ |
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
Bad Blood
John Carreyrou / Knopf / 2018-5-21 / USD 27.95
The full inside story of the breathtaking rise and shocking collapse of Theranos, the multibillion-dollar biotech startup, by the prize-winning journalist who first broke the story and pursued it to t......一起来看看 《Bad Blood》 这本书的介绍吧!