I have a list with a lot of (500+) codes and I want to insert it into database.
For example: User given codes to textarea and codes are seperated by new line (\n). In PHP it is $_POST['codes']. Of course I can just use explode() function and insert all codes in loop, but I'm thinking it's not a good idea with 500 repeatitions.
So, how can I do this the most optimal?
$_POST['codes']means: data is already in the memory anyway.