显示下拉菜单

get_declared_classes()

« get_current_user | get_declared_interfaces »
<?php
$array 
get_declared_classes ();
?>
结果
$array = [
  
=> 'stdClass',
  
=> 'Exception',
  
=> 'ErrorException',
  
=> 'Error',
  
=> 'ParseError',
  
=> 'TypeError',
  
=> 'ArgumentCountError',
  
=> 'ArithmeticError',
  
=> 'DivisionByZeroError',
  
=> 'Closure',
  
10 => 'Generator',
  
11 => 'ClosedGeneratorException',
  
12 => 'DateTime',
  
13 => 'DateTimeImmutable',
  
14 => 'DateTimeZone',
  
15 => 'DateInterval',
  
16 => 'DatePeriod',
  
17 => 'LibXMLError',
  
18 => 'SQLite3',
  
19 => 'SQLite3Stmt',
  
20 => 'SQLite3Result',
  
21 => 'CURLFile',
  
22 => 'DOMException',
  
23 => 'DOMStringList',
  
24 => 'DOMNameList',
  
25 => 'DOMImplementationList',
  
26 => 'DOMImplementationSource',
  
27 => 'DOMImplementation',
  
28 => 'DOMNode',
  
29 => 'DOMNameSpaceNode',
  
30 => 'DOMDocumentFragment',
  
31 => 'DOMDocument',
  
32 => 'DOMNodeList',
  
33 => 'DOMNamedNodeMap',
  
34 => 'DOMCharacterData',
  
35 => 'DOMAttr',
  
36 => 'DOMElement',
  
37 => 'DOMText',
  
38 => 'DOMComment',
  
39 => 'DOMTypeinfo',
  
40 => 'DOMUserDataHandler',
  
41 => 'DOMDomError',
  
42 => 'DOMErrorHandler',
  
43 => 'DOMLocator',
  
44 => 'DOMConfiguration',
  
45 => 'DOMCdataSection',
  
46 => 'DOMDocumentType',
  
47 => 'DOMNotation',
  
48 => 'DOMEntity',
  
49 => 'DOMEntityReference',
  
50 => 'DOMProcessingInstruction',
  
51 => 'DOMStringExtend',
  
52 => 'DOMXPath',
  
53 => 'finfo',
  
54 => 'GMP',
  
55 => 'LogicException',
  
56 => 'BadFunctionCallException',
  
57 => 'BadMethodCallException',
  
58 => 'DomainException',
  
59 => 'InvalidArgumentException',
  
60 => 'LengthException',
  
61 => 'OutOfRangeException',
  
62 => 'RuntimeException',
  
63 => 'OutOfBoundsException',
  
64 => 'OverflowException',
  
65 => 'RangeException',
  
66 => 'UnderflowException',
  
67 => 'UnexpectedValueException',
  
68 => 'RecursiveIteratorIterator',
  
69 => 'IteratorIterator',
  
70 => 'FilterIterator',
  
71 => 'RecursiveFilterIterator',
  
72 => 'CallbackFilterIterator',
  
73 => 'RecursiveCallbackFilterIterator',
  
74 => 'ParentIterator',
  
75 => 'LimitIterator',
  
76 => 'CachingIterator',
  
77 => 'RecursiveCachingIterator',
  
78 => 'NoRewindIterator',
  
79 => 'AppendIterator',
  
80 => 'InfiniteIterator',
  
81 => 'RegexIterator',
  
82 => 'RecursiveRegexIterator',
  
83 => 'EmptyIterator',
  
84 => 'RecursiveTreeIterator',
  
85 => 'ArrayObject',
  
86 => 'ArrayIterator',
  
87 => 'RecursiveArrayIterator',
  
88 => 'SplFileInfo',
  
89 => 'DirectoryIterator',
  
90 => 'FilesystemIterator',
  
91 => 'RecursiveDirectoryIterator',
  
92 => 'GlobIterator',
  
93 => 'SplFileObject',
  
94 => 'SplTempFileObject',
  
95 => 'SplDoublyLinkedList',
  
96 => 'SplQueue',
  
97 => 'SplStack',
  
98 => 'SplHeap',
  
99 => 'SplMinHeap',
  
100 => 'SplMaxHeap',
  
101 => 'SplPriorityQueue',
  
102 => 'SplFixedArray',
  
103 => 'SplObjectStorage',
  
104 => 'MultipleIterator',
  
105 => 'ImagickException',
  
106 => 'ImagickDrawException',
  
107 => 'ImagickPixelIteratorException',
  
108 => 'ImagickPixelException',
  
109 => 'ImagickKernelException',
  
110 => 'Imagick',
  
111 => 'ImagickDraw',
  
112 => 'ImagickPixelIterator',
  
113 => 'ImagickPixel',
  
114 => 'ImagickKernel',
  
115 => 'SessionHandler',
  
116 => 'Collator',
  
117 => 'NumberFormatter',
  
118 => 'Normalizer',
  
119 => 'Locale',
  
120 => 'MessageFormatter',
  
121 => 'IntlDateFormatter',
  
122 => 'ResourceBundle',
  
123 => 'Transliterator',
  
124 => 'IntlTimeZone',
  
125 => 'IntlCalendar',
  
126 => 'IntlGregorianCalendar',
  
127 => 'Spoofchecker',
  
128 => 'IntlException',
  
129 => 'IntlIterator',
  
130 => 'IntlBreakIterator',
  
131 => 'IntlRuleBasedBreakIterator',
  
132 => 'IntlCodePointBreakIterator',
  
133 => 'IntlPartsIterator',
  
134 => 'UConverter',
  
135 => 'IntlChar',
  
136 => 'Memcached',
  
137 => 'MemcachedException',
  
138 => '__PHP_Incomplete_Class',
  
139 => 'php_user_filter',
  
140 => 'Directory',
  
141 => 'AssertionError',
  
142 => 'PDOException',
  
143 => 'PDO',
  
144 => 'PDOStatement',
  
145 => 'PDORow',
  
146 => 'PharException',
  
147 => 'Phar',
  
148 => 'PharData',
  
149 => 'PharFileInfo',
  
150 => 'Redis',
  
151 => 'RedisArray',
  
152 => 'RedisCluster',
  
153 => 'RedisException',
  
154 => 'RedisClusterException',
  
155 => 'ReflectionException',
  
156 => 'Reflection',
  
157 => 'ReflectionFunctionAbstract',
  
158 => 'ReflectionFunction',
  
159 => 'ReflectionGenerator',
  
160 => 'ReflectionParameter',
  
161 => 'ReflectionType',
  
162 => 'ReflectionNamedType',
  
163 => 'ReflectionMethod',
  
164 => 'ReflectionClass',
  
165 => 'ReflectionObject',
  
166 => 'ReflectionProperty',
  
167 => 'ReflectionClassConstant',
  
168 => 'ReflectionExtension',
  
169 => 'ReflectionZendExtension',
  
170 => 'SimpleXMLElement',
  
171 => 'SimpleXMLIterator',
  
172 => 'SoapClient',
  
173 => 'SoapVar',
  
174 => 'SoapServer',
  
175 => 'SoapFault',
  
176 => 'SoapParam',
  
177 => 'SoapHeader',
  
178 => 'MongoDB\\BSON\\Binary',
  
179 => 'MongoDB\\BSON\\Decimal128',
  
180 => 'MongoDB\\BSON\\Javascript',
  
181 => 'MongoDB\\BSON\\MaxKey',
  
182 => 'MongoDB\\BSON\\MinKey',
  
183 => 'MongoDB\\BSON\\ObjectID',
  
184 => 'MongoDB\\BSON\\Regex',
  
185 => 'MongoDB\\BSON\\Timestamp',
  
186 => 'MongoDB\\BSON\\UTCDateTime',
  
187 => 'MongoDB\\Driver\\Command',
  
188 => 'MongoDB\\Driver\\Cursor',
  
189 => 'MongoDB\\Driver\\CursorId',
  
190 => 'MongoDB\\Driver\\Manager',
  
191 => 'MongoDB\\Driver\\Query',
  
192 => 'MongoDB\\Driver\\ReadConcern',
  
193 => 'MongoDB\\Driver\\ReadPreference',
  
194 => 'MongoDB\\Driver\\Server',
  
195 => 'MongoDB\\Driver\\BulkWrite',
  
196 => 'MongoDB\\Driver\\WriteConcern',
  
197 => 'MongoDB\\Driver\\WriteConcernError',
  
198 => 'MongoDB\\Driver\\WriteError',
  
199 => 'MongoDB\\Driver\\WriteResult',
  
200 => 'MongoDB\\Driver\\Exception\\LogicException',
  
201 => 'MongoDB\\Driver\\Exception\\RuntimeException',
  
202 => 'MongoDB\\Driver\\Exception\\UnexpectedValueException',
  
203 => 'MongoDB\\Driver\\Exception\\InvalidArgumentException',
  
204 => 'MongoDB\\Driver\\Exception\\ConnectionException',
  
205 => 'MongoDB\\Driver\\Exception\\AuthenticationException',
  
206 => 'MongoDB\\Driver\\Exception\\SSLConnectionException',
  
207 => 'MongoDB\\Driver\\Exception\\WriteException',
  
208 => 'MongoDB\\Driver\\Exception\\BulkWriteException',
  
209 => 'MongoDB\\Driver\\Exception\\ExecutionTimeoutException',
  
210 => 'MongoDB\\Driver\\Exception\\ConnectionTimeoutException',
  
211 => 'XMLReader',
  
212 => 'XMLWriter',
  
213 => 'XSLTProcessor',
  
214 => 'ZipArchive',
  
215 => 'mysqli_sql_exception',
  
216 => 'mysqli_driver',
  
217 => 'mysqli',
  
218 => 'mysqli_warning',
  
219 => 'mysqli_result',
  
220 => 'mysqli_stmt',
  
221 => 'object',
  
222 => 'application',
  
223 => 'function_list',
  
224 => 'file',
  
225 => 'function_factory',
  
226 => 'action',
  
227 => 'pbx_hash',
  
228 => 'pbx_crc16',
  
229 => 'function_core',
  
230 => 'get_declared_classes',
  
231 => 'params',
  
232 => 'synopsis',
  
233 => 'pbx_get_classes_defined_constants',
]
示例
#1 get_declared_classes  ()
另请参阅
class_exists, get_declared_interfaces, get_defined_functions