首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

ReflectionClass::getConstant

(PHP 5, PHP 7)

ReflectionClass::getConstant - 获取定义的常量

描述

代码语言:javascript
复制
public mixed ReflectionClass::getConstant ( string $name )

获取定义的常量。

警告

此函数目前没有记录;只有它的参数列表可用。

参数

name

常数的名称。

返回值

常数的值。

另请参阅

  • ReflectionClass::getConstants() - 获取常量

← ReflectionClass::export

ReflectionClass::getConstants →

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com