title: PHP Get Values from POST Array
body: <p>I'm processing a form that submits to my PHP page. The request data looks like this:</p>
  
  <pre><code>Array
  (
  [submission_id] =&gt; 363112875894117228
  [name] =&gt; Array
      (
          [0] =&gt; Tom
          [1] =&gt; Jones
      )
  
  [address] =&gt; Array
      (
          [0] =&gt; 21 Jump St
          [1] =&gt; 
          [2] =&gt; Sydney
          [3] =&gt; NSW
          [4] =&gt; 2000
          [5] =&gt; Australia
      )
  
  [cellularnumber] =&gt; Array
      (
          [0] =&gt; (041) 234-5678
      )
  
  )
  </code></pre>
  
  <p>I'm trying to set a variable that contains the value of the first name, last name etc. For example I would like to set a variable:</p>
  
  <pre><code>$firstName
  </code></pre>
  
  <p>that is equal to Tom.</p>
  
  <p>I'm familiar with using this syntax:</p>
  
  <pre><code>$firstName = $_POST['name']
  </code></pre>
  
  <p>but not sure how to handle the array in this case?</p>