Destramic Posted February 14, 2011 Share Posted February 14, 2011 is there a way of calling this function but just returning the classes you've loaded and not already built in classes with php please? Array ( [0] => stdClass [1] => Exception [2] => ErrorException [3] => COMPersistHelper [4] => com_exception [5] => com_safearray_proxy [6] => variant [7] => com [8] => dotnet [9] => DateTime [10] => DateTimeZone [11] => ReflectionException [12] => Reflection [13] => ReflectionFunctionAbstract [14] => ReflectionFunction [15] => ReflectionParameter [16] => ReflectionMethod [17] => ReflectionClass [18] => ReflectionObject [19] => ReflectionProperty [20] => ReflectionExtension [21] => LibXMLError [22] => __PHP_Incomplete_Class [23] => php_user_filter [24] => Directory [25] => SimpleXMLElement [26] => DOMException [27] => DOMStringList [28] => DOMNameList [29] => DOMImplementationList [30] => DOMImplementationSource [31] => DOMImplementation [32] => DOMNode [33] => DOMNameSpaceNode [34] => DOMDocumentFragment [35] => DOMDocument [36] => DOMNodeList [37] => DOMNamedNodeMap [38] => DOMCharacterData [39] => DOMAttr [40] => DOMElement [41] => DOMText [42] => DOMComment [43] => DOMTypeinfo [44] => DOMUserDataHandler [45] => DOMDomError [46] => DOMErrorHandler [47] => DOMLocator [48] => DOMConfiguration [49] => DOMCdataSection [50] => DOMDocumentType [51] => DOMNotation [52] => DOMEntity [53] => DOMEntityReference [54] => DOMProcessingInstruction [55] => DOMStringExtend [56] => DOMXPath [57] => RecursiveIteratorIterator [58] => IteratorIterator [59] => FilterIterator [60] => RecursiveFilterIterator [61] => ParentIterator [62] => LimitIterator [63] => CachingIterator [64] => RecursiveCachingIterator [65] => NoRewindIterator [66] => AppendIterator [67] => InfiniteIterator [68] => RegexIterator [69] => RecursiveRegexIterator [70] => EmptyIterator [71] => ArrayObject [72] => ArrayIterator [73] => RecursiveArrayIterator [74] => SplFileInfo [75] => DirectoryIterator [76] => RecursiveDirectoryIterator [77] => SplFileObject [78] => SplTempFileObject [79] => SimpleXMLIterator [80] => LogicException [81] => BadFunctionCallException [82] => BadMethodCallException [83] => DomainException [84] => InvalidArgumentException [85] => LengthException [86] => OutOfRangeException [87] => RuntimeException [88] => OutOfBoundsException [89] => OverflowException [90] => RangeException [91] => UnderflowException [92] => UnexpectedValueException [93] => SplObjectStorage [94] => XMLReader [95] => XMLWriter [96] => Autoloader )[code] Link to comment https://forums.phpfreaks.com/topic/227646-get_declared_classes-built-in-function/ Share on other sites More sharing options...
Jessica Posted February 14, 2011 Share Posted February 14, 2011 What are you trying to accomplish? Link to comment https://forums.phpfreaks.com/topic/227646-get_declared_classes-built-in-function/#findComment-1174142 Share on other sites More sharing options...
Destramic Posted February 14, 2011 Author Share Posted February 14, 2011 i just want t find out what classes have been declared on a page Link to comment https://forums.phpfreaks.com/topic/227646-get_declared_classes-built-in-function/#findComment-1174164 Share on other sites More sharing options...
AbraCadaver Posted February 14, 2011 Share Posted February 14, 2011 Only way I can think of at the moment: $builtin = get_declared_classes(); // load your classes $loaded = array_diff(get_declared_classes(), $builtin); Link to comment https://forums.phpfreaks.com/topic/227646-get_declared_classes-built-in-function/#findComment-1174167 Share on other sites More sharing options...
Destramic Posted February 14, 2011 Author Share Posted February 14, 2011 thats great thanks a lot Link to comment https://forums.phpfreaks.com/topic/227646-get_declared_classes-built-in-function/#findComment-1174194 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.