# Simple Help With Array

**URL:** <https://forum.kirupa.com/t/simple-help-with-array/262407>\
**Category:** programming\
**Created:** [June 5, 2008, 5:43pm UTC](https://forum.kirupa.com/t/simple-help-with-array/262407 "2008-06-05T17:43:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gokujou](https://avatars.discourse-cdn.com/v4/letter/g/85e7bf/32.png) [@gokujou](https://forum.kirupa.com/u/gokujou)\
**Post date:** [June 5, 2008, 5:43pm UTC](https://forum.kirupa.com/t/simple-help-with-array/262407/1 "2008-06-05T17:43:23Z")

</div>

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.

```auto

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.
