Simple Help With Array

Hello,
I have an array of objects and their values that was made on a different page. And I am trying to bring them into a page.


foreach ($option as $value) {
  $value['id'] = get_settings( $value['id'] );
}

$value[‘id’] contains the name string of the object I am trying to recreate and the get_settings is part of Wordpress and returns the data I want the new string object to contain. But I am not sure how to get the array create an object with that name.

Thank you.