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

search for in the

ReflectionClass::isFinal> <ReflectionClass::inNamespace
Last updated: Fri, 30 Oct 2009

view this page in

ReflectionClass::isAbstract

(PHP 5)

ReflectionClass::isAbstractChecks if class is abstract

Beschreibung

public bool ReflectionClass::isAbstract ( void )

Checks if the class is abstract.

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

Gibt bei Erfolg TRUE zurück, im Fehlerfall FALSE.

Beispiele

Beispiel #1 ReflectionClass::isAbstract example

<?php
class          TestClass { }
abstract class 
TestAbstractClass { }

$testClass     = new ReflectionClass('TestClass');
$abstractClass = new ReflectionClass('TestAbstractClass');

var_dump($testClass->isAbstract());
var_dump($abstractClass->isAbstract());
?>

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

bool(false)
bool(true)

Siehe auch



add a note add a note User Contributed Notes
ReflectionClass::isAbstract
There are no user contributed notes for this page.

ReflectionClass::isFinal> <ReflectionClass::inNamespace
Last updated: Fri, 30 Oct 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites