成免费的crm,久久国产精品新农夫导航新妓网,恋夜秀场全部视频安卓手机,女校花强奷在线播放A级

PHP constant() 函數(shù)

PHP constant() 函數(shù)

PHP Misc 參考手冊 PHP Misc 參考手冊

實例

返回一個常量的值:

<?php
//define a constant
define("GREETING","Hello you! How are you today?");

echo constant("GREETING");
?>

運行實例 ?

定義和用法

constant() 函數(shù)返回一個常量的值。

注釋: 該函數(shù)也適用于 class 常量。

語法

constant(constant)

參數(shù) 描述
constant 必需。規(guī)定要檢查的常量的名稱。

技術(shù)細節(jié)

返回值: 返回常量的值,如果常量未定義則返回 NULL。
PHP 版本: 4+

PHP Misc 參考手冊 PHP Misc 參考手冊
相關(guān)文章