Menu Samaritan's Purse

GET_DECLARED_CLASSES

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

Array
(
    [0] => stdClass
    [1] => Exception
    [2] => ErrorException
    [3] => Error
    [4] => CompileError
    [5] => ParseError
    [6] => TypeError
    [7] => ArgumentCountError
    [8] => ArithmeticError
    [9] => DivisionByZeroError
    [10] => Closure
    [11] => Generator
    [12] => ClosedGeneratorException
    [13] => WeakReference
    [14] => DateTime
    [15] => DateTimeImmutable
    [16] => DateTimeZone
    [17] => DateInterval
    [18] => DatePeriod
    [19] => LibXMLError
    [20] => SQLite3
    [21] => SQLite3Stmt
    [22] => SQLite3Result
    [23] => CURLFile
    [24] => HashContext
    [25] => GMP
    [26] => LogicException
    [27] => BadFunctionCallException
    [28] => BadMethodCallException
    [29] => DomainException
    [30] => InvalidArgumentException
    [31] => LengthException
    [32] => OutOfRangeException
    [33] => RuntimeException
    [34] => OutOfBoundsException
    [35] => OverflowException
    [36] => RangeException
    [37] => UnderflowException
    [38] => UnexpectedValueException
    [39] => RecursiveIteratorIterator
    [40] => IteratorIterator
    [41] => FilterIterator
    [42] => RecursiveFilterIterator
    [43] => CallbackFilterIterator
    [44] => RecursiveCallbackFilterIterator
    [45] => ParentIterator
    [46] => LimitIterator
    [47] => CachingIterator
    [48] => RecursiveCachingIterator
    [49] => NoRewindIterator
    [50] => AppendIterator
    [51] => InfiniteIterator
    [52] => RegexIterator
    [53] => RecursiveRegexIterator
    [54] => EmptyIterator
    [55] => RecursiveTreeIterator
    [56] => ArrayObject
    [57] => ArrayIterator
    [58] => RecursiveArrayIterator
    [59] => SplFileInfo
    [60] => DirectoryIterator
    [61] => FilesystemIterator
    [62] => RecursiveDirectoryIterator
    [63] => GlobIterator
    [64] => SplFileObject
    [65] => SplTempFileObject
    [66] => SplDoublyLinkedList
    [67] => SplQueue
    [68] => SplStack
    [69] => SplHeap
    [70] => SplMinHeap
    [71] => SplMaxHeap
    [72] => SplPriorityQueue
    [73] => SplFixedArray
    [74] => SplObjectStorage
    [75] => MultipleIterator
    [76] => ReflectionException
    [77] => Reflection
    [78] => ReflectionFunctionAbstract
    [79] => ReflectionFunction
    [80] => ReflectionGenerator
    [81] => ReflectionParameter
    [82] => ReflectionType
    [83] => ReflectionNamedType
    [84] => ReflectionMethod
    [85] => ReflectionClass
    [86] => ReflectionObject
    [87] => ReflectionProperty
    [88] => ReflectionClassConstant
    [89] => ReflectionExtension
    [90] => ReflectionZendExtension
    [91] => ReflectionReference
    [92] => SessionHandler
    [93] => __PHP_Incomplete_Class
    [94] => php_user_filter
    [95] => Directory
    [96] => AssertionError
    [97] => SimpleXMLElement
    [98] => SimpleXMLIterator
    [99] => DOMException
    [100] => DOMStringList
    [101] => DOMNameList
    [102] => DOMImplementationList
    [103] => DOMImplementationSource
    [104] => DOMImplementation
    [105] => DOMNode
    [106] => DOMNameSpaceNode
    [107] => DOMDocumentFragment
    [108] => DOMDocument
    [109] => DOMNodeList
    [110] => DOMNamedNodeMap
    [111] => DOMCharacterData
    [112] => DOMAttr
    [113] => DOMElement
    [114] => DOMText
    [115] => DOMComment
    [116] => DOMTypeinfo
    [117] => DOMUserDataHandler
    [118] => DOMDomError
    [119] => DOMErrorHandler
    [120] => DOMLocator
    [121] => DOMConfiguration
    [122] => DOMCdataSection
    [123] => DOMDocumentType
    [124] => DOMNotation
    [125] => DOMEntity
    [126] => DOMEntityReference
    [127] => DOMProcessingInstruction
    [128] => DOMStringExtend
    [129] => DOMXPath
    [130] => finfo
    [131] => ImagickException
    [132] => ImagickDrawException
    [133] => ImagickPixelIteratorException
    [134] => ImagickPixelException
    [135] => ImagickKernelException
    [136] => Imagick
    [137] => ImagickDraw
    [138] => ImagickPixelIterator
    [139] => ImagickPixel
    [140] => ImagickKernel
    [141] => Collator
    [142] => NumberFormatter
    [143] => Normalizer
    [144] => Locale
    [145] => MessageFormatter
    [146] => IntlDateFormatter
    [147] => ResourceBundle
    [148] => Transliterator
    [149] => IntlTimeZone
    [150] => IntlCalendar
    [151] => IntlGregorianCalendar
    [152] => Spoofchecker
    [153] => IntlException
    [154] => IntlIterator
    [155] => IntlBreakIterator
    [156] => IntlRuleBasedBreakIterator
    [157] => IntlCodePointBreakIterator
    [158] => IntlPartsIterator
    [159] => UConverter
    [160] => IntlChar
    [161] => JsonException
    [162] => mysqli_sql_exception
    [163] => mysqli_driver
    [164] => mysqli
    [165] => mysqli_warning
    [166] => mysqli_result
    [167] => mysqli_stmt
    [168] => PDOException
    [169] => PDO
    [170] => PDOStatement
    [171] => PDORow
    [172] => PharException
    [173] => Phar
    [174] => PharData
    [175] => PharFileInfo
    [176] => SoapClient
    [177] => SoapVar
    [178] => SoapServer
    [179] => SoapFault
    [180] => SoapParam
    [181] => SoapHeader
    [182] => XMLReader
    [183] => XMLWriter
    [184] => ZipArchive
)

PHP