title: Get value of multidimensional array in array
body: <p>I have below values in formsubmit,</p>
  <pre><code>items[0][item_name]: Test
  items[0][item_description]: testing1
  items[0][item_price]: 11
  items[0][item_group]: 18
  items[0][item_code]: 11
  items[0][item_is_active][]: 1
  items[1][item_name]: test2
  items[1][item_description]: test
  items[1][item_price]: 12
  items[1][item_group]: 18
  items[1][item_code]: 12
  items[1][item_is_active][]: 1
  </code></pre>
  <p>and here is serverside DB entry in laravel,</p>
  <pre><code>            $items_data = $request-&gt;items;
  
              foreach ($items_data as $i) {
                  $items = new Menuitems; //Must be reinit to reiterate all entries
                  $items-&gt;item_name = $i['item_name'];
                  $items-&gt;item_description = $i['item_description'];
                  $items-&gt;item_price = $i['item_price'];
                  $items-&gt;item_group = $i['item_group'];
                  $items-&gt;item_code = $i['item_code'];
                  $items-&gt;item_is_active = $i['item_is_active'];
                  $items-&gt;save();
              }
  </code></pre>
  <p>It works fine all entries except for <strong>item_is_active</strong> because it has one more <strong>[ ]</strong> in form input,</p>
  <p>How can I add <strong>item_is_active</strong> in foreach loop? should it have one more foreach loop inside?</p>
  <hr />
  <p>Below is formsubmit values when some checkboxes are not selected,</p>
  <pre><code>items[0][item_name]: Capachno
  items[0][item_description]: best
  items[0][item_price]: 12
  items[0][item_group]: 17
  items[0][item_code]: 11
  items[0][item_is_active][]: 1
  items[1][item_name]: Lambc
  items[1][item_description]: sdf
  items[1][item_price]: 34
  items[1][item_group]: 17
  items[1][item_code]: 12
  items[1][item_is_active][]: 1
  items[2][item_name]: tasto
  items[2][item_description]: ewr
  items[2][item_price]: 12
  items[2][item_group]: 17
  items[2][item_code]: 13
  items[3][item_name]: hingo
  items[3][item_description]: 123
  items[3][item_price]: 123
  items[3][item_group]: 17
  items[3][item_code]: 32
  </code></pre>