title: Using foreach in an array
body: <p>I have the below array <code>em_events(array(</code> and need to insert the below foreach to repeat the <code>$delete</code> link. How do in put a foreach into an array? Not sure how best to describe this.</p>
  
  <pre><code>foreach ($EM_Events as $event) {
      $delete = esc_url(add_query_arg(array('action'=&gt;'event_delete', 'event_id'=&gt;$event-&gt;event_id, '_wpnonce'=&gt; wp_create_nonce('event_delete_'.$event-&gt;event_id))));
  }
  
  
      em_events(array(
      'owner'=&gt;4,
      'limit'=&gt;10,
      'scope'=&gt;'all',
      'format'=&gt;'
  
  &lt;li class="even portfolio-entry"&gt;
      &lt;div class="entry-thumb standard"&gt;
          &lt;a class="thumblink" href="'.$delete.'"&gt;&lt;span class="thumbnail"&gt;#_EVENTIMAGE{220,220}&lt;/span&gt;&lt;span class="extra"&gt;&lt;strong&gt;Edit Event&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;
      &lt;/div&gt;
  
      &lt;div class="entry-title"&gt;
          &lt;a href="#_EVENTURL" title="#_EVENTURL" rel="bookmark"&gt;&lt;span style="color:#00b1d9;"&gt;PREVIEW EVENT POST&lt;/span&gt;&lt;span&gt;#F #j, #Y&lt;/span&gt;#_NAME&lt;/a&gt;
      &lt;/div&gt;
  &lt;/li&gt;   
  
      '
       ));
  </code></pre>