I get a value from a database, and if I dump it, I have:
myvar=stdClass::__set_state(array(
'id' => '320646',
'nameNormalized' => '27817759',
'name' => 'Thename'
))
How could it be possible to create this same variable by hand? When I do this:
$myvar= new \stdClass(array(
'id' => '320646',
'nameNormalized' => '27817759',
'name' => 'Thename',
));
var_export($myvar);
I get:
stdClass::__set_state(array(
))
Then how to do?