How to insert an ArrayList to mysql using Volley
<p>I want to insert an <code>ArrayList</code> that contain some String and some integer into <code>MySQL</code> using Volley in android. This is how I want to send my array in android. 
I dont know if  this is right or not.</p>

<pre><code>@Override
public Map&lt;String, String&gt; getHeaders() throws AuthFailureError {
    Map&lt;String, String&gt; params = new HashMap&lt;String, String&gt;();
    params.put("Authorization", user.getApikey());
    return params;
}

@Override
protected Map&lt;String, String&gt; getParams() throws AuthFailureError {
    Map&lt;String,String&gt; params = new HashMap&lt;&gt;();
   for(int i=0; i&lt;wordlist.size();i++){
       params.put("word_id["+i+"]",String.valueOf(wordlist.get(i).getWord_id()));
       params.put("word["+i+"]",wordlist.get(i).getWord());
       params.put("translation["+i+"]",wordlist.get(i).getTranslation());
       params.put("english["+i+"]",wordlist.get(i).getEnglish());

   }
   return params;
}
</code></pre>

<p>The problem is I have no idea how to get an <code>ArrayList</code> in <code>PHP</code> with POST data and how to use it to insert my data to <code>MySQL</code>. 
I would be really grateful if some body tell me how to handle <code>PHP</code> part with example and even if I am doing right in android part or not.</p>