title: How to store multiple data into an array
body: <p>I have a profile page where user can edit their profile, I have provided them a skill form where they can enter skill name &amp; percentage of how much you are perfect in it like-></p>
  
  <pre><code>Skill1 percentage 86%  Add more
  </code></pre>
  
  <p>this add more button adds input field dynamically</p>
  
  <p>So now when i try to save this data here is what i get in $_POST</p>
  
  <pre><code>$_POST['skill'];
  $_POST['percentage'];
  </code></pre>
  
  <p>i tried adding them into array so that i can save it to database but because of multiple dynamic field it get messy &amp; then here is what i receive in array</p>
  
  <pre><code>    Array
  (
      [0] =&gt; Photoshop
      [1] =&gt; 55%
      [2] =&gt; PHP
      [3] =&gt; 35%
  )
  </code></pre>
  
  <p>How can i easily know that this percentage is of this skill</p>
  
  <p>Sometimes array looks like</p>
  
  <pre><code>Array
      (
          [0] =&gt; 55%
          [1] =&gt; Photoshop
          [2] =&gt; PHP
          [3] =&gt; 35%
      )
  </code></pre>
  
  <p>So how can i store dynamic field data into array so that later on it can be shown properly to the user</p>