Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

get_declared_classes

Description

Returns an array with the name of the defined classes

Syntax

get_declared_classes ( void ) : array

Return

Returns an array of the names of the declared classes in the current script.

Note: Note that depending on what extensions you have compiled or loaded into PHP, additional classes could be present. This means that you will not be able to define your own classes using these names. There is a list of predefined classes in the Predefined Classes section of the appendices.

Examples

1

<?

$return = get_declared_classes();

print_r($return);

?>
Array
(
    [0] => InternalIterator
    [1] => Exception
    [2] => ErrorException
    [3] => Error
    [4] => CompileError
    [5] => ParseError
    [6] => TypeError
    [7] => ArgumentCountError
    [8] => ValueError
    [9] => ArithmeticError
    [10] => DivisionByZeroError
    [11] => UnhandledMatchError
    [12] => Closure
    [13] => Generator
    [14] => ClosedGeneratorException
    [15] => WeakReference
    [16] => WeakMap
    [17] => Attribute
    [18] => ReturnTypeWillChange
    [19] => AllowDynamicProperties
    [20] => SensitiveParameter
    [21] => SensitiveParameterValue
    [22] => Fiber
    [23] => FiberError
    [24] => stdClass
    [25] => DateTime
    [26] => DateTimeImmutable
    [27] => DateTimeZone
    [28] => DateInterval
    [29] => DatePeriod
    [30] => LibXMLError
    [31] => OpenSSLCertificate
    [32] => OpenSSLCertificateSigningRequest
    [33] => OpenSSLAsymmetricKey
    [34] => SQLite3
    [35] => SQLite3Stmt
    [36] => SQLite3Result
    [37] => InflateContext
    [38] => DeflateContext
    [39] => CurlHandle
    [40] => CurlMultiHandle
    [41] => CurlShareHandle
    [42] => CURLFile
    [43] => CURLStringFile
    [44] => HashContext
    [45] => FTP\Connection
    [46] => JsonException
    [47] => LogicException
    [48] => BadFunctionCallException
    [49] => BadMethodCallException
    [50] => DomainException
    [51] => InvalidArgumentException
    [52] => LengthException
    [53] => OutOfRangeException
    [54] => RuntimeException
    [55] => OutOfBoundsException
    [56] => OverflowException
    [57] => RangeException
    [58] => UnderflowException
    [59] => UnexpectedValueException
    [60] => RecursiveIteratorIterator
    [61] => IteratorIterator
    [62] => FilterIterator
    [63] => RecursiveFilterIterator
    [64] => CallbackFilterIterator
    [65] => RecursiveCallbackFilterIterator
    [66] => ParentIterator
    [67] => LimitIterator
    [68] => CachingIterator
    [69] => RecursiveCachingIterator
    [70] => NoRewindIterator
    [71] => AppendIterator
    [72] => InfiniteIterator
    [73] => RegexIterator
    [74] => RecursiveRegexIterator
    [75] => EmptyIterator
    [76] => RecursiveTreeIterator
    [77] => ArrayObject
    [78] => ArrayIterator
    [79] => RecursiveArrayIterator
    [80] => SplFileInfo
    [81] => DirectoryIterator
    [82] => FilesystemIterator
    [83] => RecursiveDirectoryIterator
    [84] => GlobIterator
    [85] => SplFileObject
    [86] => SplTempFileObject
    [87] => SplDoublyLinkedList
    [88] => SplQueue
    [89] => SplStack
    [90] => SplHeap
    [91] => SplMinHeap
    [92] => SplMaxHeap
    [93] => SplPriorityQueue
    [94] => SplFixedArray
    [95] => SplObjectStorage
    [96] => MultipleIterator
    [97] => Random\RandomError
    [98] => Random\BrokenRandomEngineError
    [99] => Random\RandomException
    [100] => Random\Engine\Mt19937
    [101] => Random\Engine\PcgOneseq128XslRr64
    [102] => Random\Engine\Xoshiro256StarStar
    [103] => Random\Engine\Secure
    [104] => Random\Randomizer
    [105] => ReflectionException
    [106] => Reflection
    [107] => ReflectionFunctionAbstract
    [108] => ReflectionFunction
    [109] => ReflectionGenerator
    [110] => ReflectionParameter
    [111] => ReflectionType
    [112] => ReflectionNamedType
    [113] => ReflectionUnionType
    [114] => ReflectionIntersectionType
    [115] => ReflectionMethod
    [116] => ReflectionClass
    [117] => ReflectionObject
    [118] => ReflectionProperty
    [119] => ReflectionClassConstant
    [120] => ReflectionExtension
    [121] => ReflectionZendExtension
    [122] => ReflectionReference
    [123] => ReflectionAttribute
    [124] => ReflectionEnum
    [125] => ReflectionEnumUnitCase
    [126] => ReflectionEnumBackedCase
    [127] => ReflectionFiber
    [128] => SessionHandler
    [129] => __PHP_Incomplete_Class
    [130] => AssertionError
    [131] => php_user_filter
    [132] => Directory
    [133] => Shmop
    [134] => SimpleXMLElement
    [135] => SimpleXMLIterator
    [136] => PhpToken
    [137] => XMLParser
    [138] => DOMException
    [139] => DOMImplementation
    [140] => DOMNode
    [141] => DOMNameSpaceNode
    [142] => DOMDocumentFragment
    [143] => DOMDocument
    [144] => DOMNodeList
    [145] => DOMNamedNodeMap
    [146] => DOMCharacterData
    [147] => DOMAttr
    [148] => DOMElement
    [149] => DOMText
    [150] => DOMComment
    [151] => DOMCdataSection
    [152] => DOMDocumentType
    [153] => DOMNotation
    [154] => DOMEntity
    [155] => DOMEntityReference
    [156] => DOMProcessingInstruction
    [157] => DOMXPath
    [158] => finfo
    [159] => GdImage
    [160] => GdFont
    [161] => IMAP\Connection
    [162] => PDOException
    [163] => PDO
    [164] => PDOStatement
    [165] => PDORow
    [166] => PharException
    [167] => Phar
    [168] => PharData
    [169] => PharFileInfo
    [170] => PSpell\Dictionary
    [171] => PSpell\Config
    [172] => SoapClient
    [173] => SoapVar
    [174] => SoapServer
    [175] => SoapFault
    [176] => SoapParam
    [177] => SoapHeader
    [178] => Socket
    [179] => AddressInfo
    [180] => tidy
    [181] => tidyNode
    [182] => XMLReader
    [183] => XMLWriter
    [184] => XSLTProcessor
    [185] => ZipArchive
)
HomeMenu