title: PHP - Convert information supplied in a string format to an array format
body: <pre><code>$attribute_options_string = "Spice (Very Hot/3, Hot/2, Medium/1) | Size(Small,Medium,Large)";
  
  $attribute_options_array = array(
   'spice' =&gt; array(
      'very hot' =&gt;3,
       'hot' =&gt; 2,
       'medium' =&gt; 1
   ),
      'size' =&gt; array(
          'small',
          'medium',
          'large'
      )
  );
  </code></pre>
  
  <p>I am trying to write a function that converts the string format to the array format.</p>