title: How to combine an array of keys with corresponding values from another array?
body: <p>I have 2 arrays 
   </p>
  
  <pre><code>Array ( [1] =&gt; Manufacturer [2] =&gt; Location [3] =&gt; Hours [4] =&gt; Model ) 
  </code></pre>
  
  <p>and</p>
  
  <p></p>
  
  <pre><code>Array ( [Manufacturer] =&gt; John Deere [Location] =&gt; NSW [Hours] =&gt; 6320 ) 
  </code></pre>
  
  <p>I need to combine them and associate the values from the first array( Manufacturer, Location, hours , Model) as names in the 2nd array and if a specific values from the first array doesn't find associative name in the 2nd array to associate empty . For the example the result that I need from the above arrays is an array like this </p>
  
  <p></p>
  
  <pre><code>   Array ( [Manufacturer] =&gt; John Deere [Location] =&gt; NSW [Hours] =&gt; 6320 [Model] =&gt; ) 
  </code></pre>
  
  <p>If i use simple array_combine it says that PHP Warning:  array_combine() [function.array-combine]: Both parameters should have equal number of elements </p>