title: Is it possible to combine two arrays within an array in PHP?
body: <p>I have an array that has some data that looks like this</p>
  
  <pre><code>$valueOptions = array(
                         'order_shipping_data_firstname' =&gt; Mage::helper('orders2csv')-&gt;__('order shipping firstname'), 
                         'order_shipping_data_lastname' =&gt; Mage::helper('orders2csv')-&gt;__('order shipping lastname'),
                         'order_shipping_data_region' =&gt; Mage::helper('orders2csv')-&gt;__('order shipping region'),
                         'order_shipping_data_street' =&gt; Mage::helper('orders2csv')-&gt;__('order shipping street'),
                         'order_shipping_data_city' =&gt; Mage::helper('orders2csv')-&gt;__('order shipping city')
                  );
  </code></pre>
  
  <p>I need to combine the firstname and last name fields but can't figure out a solution. This is the only file in the module that references anything lastname / first name / name so it's calling it externally from within the magento framework. Ideally they would be stored in variables and I could just combine them $fullname = $first . $last etc but this won't work in arrays.</p>
  
  <p>I don't understand the usage of <code>=&gt;</code> too well but I know if I edit the right hand side and make this : <code>=&gt; Mage::helper('orders2csv')-&gt;__('order shipping fullname')</code> the option will appear where I want (in a dropdown), so I guess I'm trying to combine <code>'order_shipping_data_firstname'&amp;'order_shipping_data_lastname'</code> and put it before this,  but within the array?</p>
  
  <p>I've also tried starting another array in a variable and inserting the variable in the valueOptions array but this broke.</p>