how to display array in div structure in drupal 7? How can I render arrays in div structure in drupal?. I am having a select list with ajax callback.Everytime I choose option, it's fields get fetched into an array. Now how can I show that array fields value?

$nodes = array();
    $output = array();
    $i=0;
    $nids = db_select('node', 'n')
      -&gt;fields('n', array('nid'))
      -&gt;condition('type', 'article', '=')
      -&gt;execute()
      -&gt;fetchCol();
    $nodes = node_load_multiple($nids);
     foreach ($nodes as $node =&gt; $value) {
      $output[$i]['title'] = $value-&gt;title;
      $output[$i]['body'] =$value-&gt;body['und']['0']['value'];
      $i++;
    }
    return output;


If I used return theme('item_list', array('items' =&gt; $output));, it is not working for me. Please help.
After a research of 20 minutes, I came to this answer.theme('item_list', array('items' =&gt; $output)); This function follows a simple array key value structure.It doesn't support multiple idexes. so remove $i from array, and it will work.