# stdClass

- Thread: https://externals.io/message/8211
- Original archive: https://news-web.php.net/php.internals/8211
- Started by Jakes on 2004-02-27T13:15:17+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #8211 — Jakes — 2004-02-27T13:15:17+00:00

URL: https://externals.io/message/8211#8211

Please can some explain to me what the stdClass is used for in 
PHP 5. I've tried to use the reflection API to reverse engineer it
but it does not give you much on the stdClass

What methods can be inherited from this class?

Does it work the same was as the java base class - Object?

---

## #8215 — Stig S. Bakken — 2004-02-27T13:43:55+00:00

URL: https://externals.io/message/8211#8215 · In reply to: #8211

> Please can some explain to me what the stdClass is used for in 
> PHP 5. I've tried to use the reflection API to reverse engineer it
> but it does not give you much on the stdClass
> 
> What methods can be inherited from this class?
> 
> Does it work the same was as the java base class - Object?

No.  There is no such thing as Java's base class built into PHP. 
stdClass is just an empty "dummy class" that is used internally, for
example if you cast an array to an object.  You can also use stdClass if
you need an object of no particular class.

 - Stig
