While it is not required for a class in PHP to explicitly extend stdClass
, I was wondering if there is some kind of best practice or benefit in doing so.
Should I extend stdClass
when declaring a class?
For reference, see What is stdClass in PHP? and PHP: Objects, Converting to object.