title: Make HashMap Type Key-Value pair in PHP
body: <p>I have two arraylist and i have converted them into HashMap like below</p>
  
  <pre><code>ArrayList&lt;Integer&gt; productIds = new ArrayList&lt;Integer&gt;();
  ArrayList&lt;Integer&gt; productQuantity = new ArrayList&lt;Integer&gt;();
  Map&lt;Integer, Integer&gt; saleReport = new HashMap&lt;Integer, Integer&gt;();
  
  for(int i=0;i&lt;productIds.size();i++){
        saleReport.put(productIds.get(i), productQuantity.get(i));
  }
  </code></pre>
  
  <p><strong>Now i want to do the same thing in PHP. I want to convert two array's into the HashMap's like KeyValue Pair.</strong> </p>
  
  <p>I have these two arrays in PHP with the equal number of items. Please guide me how can i do that. </p>