stdClass to array?

Cast it to an array:

$array = (array)$stdClass;

Leave a Comment