title: How to urlencode a multidimensional array?
body: <p>I have searched hi and low for a solution.  I have a dynamic multidimensional array I need to break up and urlencode.  The number of items will change but they will always have the same keys.</p>
  
  <pre><code>$formFields = Array ( 
  [0] =&gt; Array ( [form_name] =&gt; productID [form_value] =&gt; 13 ) 
  [1] =&gt; Array ( [form_name] =&gt; campaign [form_value] =&gt; email@gmail.com ) 
  [2] =&gt; Array ( [form_name] =&gt; redirect [form_value] =&gt; http://example.com ) ) 
  </code></pre>
  
  <p>Each array has a Form Name and a Form Value.</p>
  
  <p>This is what I'm trying to get to:</p>
  
  <pre><code>$desired_results = 
  productID =&gt; 13
  campaign =&gt; email@gmail.com
  redirect =&gt; http://example.com
  </code></pre>
  
  <p>Every time I try and split them up I end up with: form_name => productID or something like that.</p>
  
  <p>I'm trying to take the results and then urlencode them:</p>
  
  <pre><code>productID=13&amp;campaign=email&amp;gmail.com&amp;redirect=http://example.com&amp;
  </code></pre>