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

search for in the

ReflectionClass::isIterateable> <ReflectionClass::isInterface
[edit] Last updated: Tue, 18 Jun 2013

view this page in

ReflectionClass::isInternal

(PHP 5)

ReflectionClass::isInternal检查类是否由扩展或核心在内部定义

说明

public bool ReflectionClass::isInternal ( void )

检查类是否由扩展或核心在内部定义,与用户定义相反。

参数

此函数没有参数。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

范例

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

<?php
$internalclass 
= new ReflectionClass('ReflectionClass');

class 
Apple {}
$userclass = new ReflectionClass('Apple');

var_dump($internalclass->isInternal());
var_dump($userclass->isInternal());
?>

以上例程会输出:

bool(true)
bool(false)

参见



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

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