ReflectionClass
PHP Manual

ReflectionClass::getExtensionName

(PHP 5)

ReflectionClass::getExtensionNameGets the name of the extension which defined the class

说明

public string ReflectionClass::getExtensionName ( void )

Gets the name of the extension which defined the class.

参数

此函数没有参数。

返回值

The name of the extension which defined the class, or FALSE for user-defined classes.

范例

Example #1 Basic usage of ReflectionClass::getExtensionName()

<?php
$class 
= new ReflectionClass('ReflectionClass');
$extension $class->getExtensionName();
var_dump($extension);
?>

以上例程会输出:

string(10) "Reflection"

参见


ReflectionClass
PHP Manual