The for loop is in the code I showed you. There is no multiple record insert in mysqli currently. So it uses the single record insert with the manual for loop I've given an example of in the post above.
[Your insert code here] is where you would have the chunk of code you want to be repeated (insert server behavior)