Zamień obiekt Stdclass w tablicę
$array = get_object_vars( $obj );
Ganz404
$array = get_object_vars( $obj );