title: How to calculate/generate a string with all possible values in an array?
body: <p>This is driving me nuts but I've been struggling with this all noon now (im in GMT+2;)).</p>
  
  <p>I want to do a fairly (I believed but realized it turned out otherwise..) simple task.</p>
  
  <p>Lets say I have an array which looks like this:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [OptionID] =&gt; 8748
              [Values] =&gt; Array
                  (
                      [0] =&gt; 11614
                      [1] =&gt; 11615
                  )
          )
      [1] =&gt; Array
          (
              [OptionID] =&gt; 8749
              [Values] =&gt; Array
                  (
                      [0] =&gt; 11616
                      [1] =&gt; 11617
                 )
          )
  )
  </code></pre>
  
  <p>This array is for generating all possible options with a product. Lets say OptionID 8748 means 'Size' and the Values in that array are 'L' &amp; 'XL'. OptionID 8749 could be 'Color' with Values 'Red' and 'Black'.</p>
  
  <p>I want to achieve the simple task to get the four unique combinations of that product in a string like:</p>
  
  <p>11614+11616
  11614+11617
  11615+11616
  11615+11617</p>
  
  <p>But then, with a different product there could be a third product option, so it should be able to work arround with an unlimited depth.</p>