SyntaxFix
Write A Post
Hire A Developer
Questions
Object to array
$array = (array) $players_Obj; $object = new StdClass; $object->foo = 1; $object->bar = 2; var_dump( (array) $object );
Output:
array(2) { 'foo' => int(1) 'bar' => int(2) }