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?
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 stdClassWhat 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