Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
多くの (500 以上の) コードを含むリストがあり、それをデータベースに挿入したいと考えています。
例: ユーザーがテキストエリアにコードを指定し、コードは改行 ( \n) で区切られます。PHP では$_POST['codes']. もちろん、explode()関数を使用してすべてのコードをループに挿入することもできますが、500回の繰り返しではお勧めできません。
\n
$_POST['codes']
explode()
では、どうすればこれを最適に行うことができますか?