title: PHP get value from post array
body: <p>I'm posting an array from a html form with the following input-tag:</p>
  
  <pre><code>&lt;input type="text" name="new_service[1]['category']"&gt;
  </code></pre>
  
  <p>I get this array:</p>
  
  <pre><code>Array
  (
      [1] =&gt; Array
          (
              ['category'] =&gt; 1
              ['description'] =&gt; asdasd
              ['price'] =&gt; asdasd
              ['time'] =&gt; 1
          )
  
  )
  </code></pre>
  
  <p>When I try to get the category value with</p>
  
  <pre><code>echo $_POST['new_service'][1]['category']; 
  </code></pre>
  
  <p>I get this error message:</p>
  
  <pre><code>Notice: Undefined index: category
  </code></pre>
  
  <p>What am I doing wrong?</p>