如何将多个JS函数调用的结果分配给PHP数组?

1.I have JS function that creates HTML array 2.This function is called multiple times , therefore multiple arrays are created too 3.How can I assign all created HTML arrays as keys of a new PHP array ?

var nextId = 0;

function addLanguage() {

nextId++;

var inputDiv = document.createElement("div");

inputDiv.setAttribute("id","num" + nextId);

inputDiv.innerHTML = 
    "<input type='text' name='langs[]'/>"
    +
    "<select name='langs[]'>
\
        <option value='comprehension'>-comprehension-</option>
\
        <option value='beginner'>beginner</option>
\
        <option value='intermediate'>intermediate</option>
\
        <option value='advanced'>advanced</option>
\
    </select>"
    +
    "<select name='langs[]'>
\
        <option value='reading'>-reading-</option>
\
        <option value='beginner'>beginner</option>
\
        <option value='intermediate'>intermediate</option>
\
        <option value='advanced'>advanced</option>
\
    </select>"
    +
    "<select name='langs[]'>
\
        <option value='writing'>-writing-</option>
\
        <option value='beginner'>beginner</option>
\
        <option value='intermediate'>intermediate</option>
\
        <option value='advanced'>advanced</option>
\
    </select><br>"
    +
    "<input type='button' value='Remove Language' onclick='removeLanguage(\"num" + nextId + "\")'>"
    +
    "<button type='button' value='press' onclick='addLanguage()'>Add Language</button>"
    ;

        document.getElementById('langs').appendChild(inputDiv);

}

So addLanguage() is called multiple times and creates multiple langs[] array . How can I assign these arrays as keys to another array ?