(PHP 5, PHP 7, PHP 8)
ReflectionClass::isAbstract — Checks if class is abstract
This function has no parameters.
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)