I'm using a third party storage system that only returns me stdClass objects no matter what I feed in for some obscure reason. So I'm curious to know if there is a way to cast/convert an stdClass object into a full fledged object of a given type.
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Showing posts with label stdclass. Show all posts
Showing posts with label stdclass. Show all posts
Friday, April 6, 2012
Convert/cast an stdClass object to another class
Subscribe to:
Posts (Atom)