I need to change the type of object from stdClass to "myClass", so like does PDO::fetch_object("myClass");
$inc = new stdClass;
$inc = funct_for_set_type_of_object("myClass"); // here the function to do
// namespace conversion
echo get_class($inc);
Expected result:myClass
I need function like above: "get_class", but with behaviour like "set_class".