黄色电影一区二区,韩国少妇自慰A片免费看,精品人妻少妇一级毛片免费蜜桃AV按摩师 ,超碰 香蕉

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ù)細(xì)節(jié)

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

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