(PHP 5, PHP 7)
ReflectionClass::isAbstract — Checks if class is abstract
public ReflectionClass::isAbstract ( ) : bool
Checks if the class is abstract.
This function has no parameters.
 Returns true on success or false on failure. 
Example #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());
?> The above example will output:
bool(false) bool(true)
    © 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
    https://www.php.net/manual/en/reflectionclass.isabstract.php