title: Combine text and foreach key as an array key
body: <p>How can you add text to an array key whilst also using the 'key' of a foreach loop.</p>
  
  <p>For instance. I want to output each array item from one array into another with the keys 'price_0', 'price_1', 'price_2' and so on.</p>
  
  <pre><code>foreach($pricesArray as $key=&gt;$value){
       $data['price_'$key']'] = $pricesArray[$key];
  }
  </code></pre>
  
  <p>Thanks</p>