ReflectionClass引入了哪个PHP版本? [英] What version of PHP was ReflectionClass introduced in?

查看:98
本文介绍了ReflectionClass引入了哪个PHP版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ReflectionClass引入了什么版本的PHP?

What version of PHP was ReflectionClass introduced in?

例如:

$objMetaData = new ReflectionClass('Direction');
$arrValidDirections = $objMetaData->getConstants();

推荐答案

根据到更改日志对于PHP5,在PHP 5.0.0的第二个Beta中引入了反射API. 我想 ReflectionClass 是在同一时间介绍的,但我不确定.

According to the changes log for PHP5, the reflection API was introduced in the second beta of PHP 5.0.0. i suppose that ReflectionClass was introduced in the same time, but I'm not sure.

这篇关于ReflectionClass引入了哪个PHP版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆