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

search for in the

ReflectionClass::isInternal> <ReflectionClass::isInstantiable
[edit] Last updated: Thu, 20 Jun 2013

view this page in

ReflectionClass::isInterface

(PHP 5)

ReflectionClass::isInterfaceChecks if the class is an interface

Descrierea

public bool ReflectionClass::isInterface ( void )

Checks whether the class is an interface.

Parametri

Această funcție nu are parametri.

Valorile întoarse

Întoarce valoarea TRUE în cazul succesului sau FALSE în cazul eșecului.

Exemple

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

<?php
interface SomeInterface {
    public function 
interfaceMethod();
}

$class = new ReflectionClass('SomeInterface');
var_dump($class->isInterface());
?>

Exemplul de mai sus va afișa:

bool(true)

Vedeți de asemenea



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

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