title: use get_declared_class() to only ouput that classes I declared not the ones PHP does automatically
body: <p>A little curious, but I want to make an array out of the classes that I have declared using something like this</p>
  
  <pre><code>foreach(get_declared_classes() as $class)
      $c[] = $class;
  
  
  print_r($c);
  </code></pre>
  
  <p>the only problem with that is that I get something like on top of my loaded classes:</p>
  
  <pre><code>stdClass
  Exception
  ErrorException
  Closure
  DateTime
  DateTimeZone
  DateInterval
  DatePeriod
  LibXMLError
  LogicException
  BadFunctionCallException
  BadMethodCallException
  DomainException
  InvalidArgumentException
  LengthException
  OutOfRangeException
  RuntimeException
  OutOfBoundsException
  OverflowException
  RangeException
  UnderflowException
  UnexpectedValueException
  RecursiveIteratorIterator
  IteratorIterator
  {...}
  SQLiteResult
  SQLiteUnbuffered
  SQLiteException
  SQLite3
  SQLite3Stmt
  SQLite3Result
  XMLReader
  XMLWriter
  XSLTProcessor
  ZipArchive
  </code></pre>
  
  <p>is there a function that only loads user specific classes rather than system loaded classes? or perhaps a condition statement that limits the <code>foreach</code> to list those classes?</p>