php - Split comma-separated input box values and then store in database
I have a text input box where you can type tags seperated by commas. I want to store these tags separately in a table but I have no idea how to do that. I know I have to seperate the tags after they are posted so I now have this
$array = explode(',', $_POST['tag']);
Is this a good start and how do I have to go on after that?