downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

ReflectionClass::getFileName> <ReflectionClass::getExtension
[edit] Last updated: Fri, 17 May 2013

view this page in

ReflectionClass::getExtensionName

(PHP 5)

ReflectionClass::getExtensionName获取定义的类所在的扩展的名称

说明

public string ReflectionClass::getExtensionName ( void )

获取定义的类所在的扩展的名称。

参数

此函数没有参数。

返回值

获取定义的类所在的扩展的名称,如果是用户定义的类,则返回 FALSE

范例

Example #1 ReflectionClass::getExtensionName() 的基本用法

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

以上例程会输出:

string(10) "Reflection"

参见



add a note add a note User Contributed Notes ReflectionClass::getExtensionName - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites