title: Iterating through Product Variants
body: <p>I need for my e-commerce website to add products with multiple variants: in the image below there is a tshirt with multiple colors, sizes and materials.</p>
  
  <p><a href="https://i.stack.imgur.com/doTIB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/doTIB.png" alt="enter image description here"></a></p>
  
  <p>So in php I have two arrays, the red one containing the name of the variants and the green one containing the said variants.</p>
  
  <p>I need to output something like this:</p>
  
  <pre><code>Culoare: Rosu - Marime: L - Material: Stofa
  
  Culoare: Rosu - Marime: L - Material: Rafie
  
  Culoare: Rosu - Marime: XL - Material: Stofa
  
  Culoare: Rosu - Marime XL: Material: Rafie
  
  ...
  
  Culoare: Verde - Marime: L - Material: Stofa
  
  Culoare: Verde - Marime: L - Material: Rafie
  
  ...
  </code></pre>
  
  <p>There are 18 combinations</p>
  
  <p>I tried like for hours and i can't get my head around this. Any help is apreciated!</p>