title: How do you pass a multi dimensional array from view to controller?
body: <p>It was easy passing data from controller to view. Also, to pass data from view to controller you need form tags. But, how do you pass an array from an input form? any idea guys? here's what the array looks like:</p>
  
  <pre><code>$test = array
  (
  array($employee_id[0],$name[0],$days_worked[0],$overtime_hours[0]),
  array($employee_id[1],$name[1],$days_worked[1],$overtime_hours[1]),
  array($employee_id[2],$name[2],$days_worked[2],$overtime_hours[2])
  );
  </code></pre>
  
  <p>and from my html view i got here an input form:</p>
  
  <pre><code>&lt;input name="test" type="text" class="form-control" id="test" value="&lt;?php echo $test;?&gt;"&gt;
  </code></pre>
  
  <p>and when i got to my model to test if it gotten the data inside the array:</p>
  
  <pre><code>$this-&gt;test = $_POST['test'];
  echo $test = $_POST['test'];
  </code></pre>
  
  <p>all i got was a String "Array". I can't access what's inside the array. I need help.</p>