Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //grab the tag model
- $tagModel = new Tags();
- //loop through the tag array
- foreach($tags as $tag){
- $tagModel->tag_name = $tag;
- $tagModel->save();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement