//This works best $array = json_decode(json_encode($object), true);
array_values(get_object_vars($object));