title: smaller array based on array contents
body: <p>I am looking for a way to create a new array based on array contents.</p>
  
  <p>so i've got:</p>
  
  <pre><code>Array ( [0] =&gt; 1 
          [type] =&gt; first_value_i_need 
          [some_id] =&gt; 2 
          [hits] =&gt; 88 
          [some_other_id] =&gt; second_value_i_need 
        ) 
  </code></pre>
  
  <p>and i would like to get</p>
  
  <pre><code>Array ( [0] =&gt; 1 
          [app_name] =&gt; "first_value_i_need-second_value_i_need" 
          [hits] =&gt; "88" 
        ) 
  </code></pre>
  
  <p>I know that i need some sort of foreach function, but i'm right now lost.</p>