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"

參見

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top