$row = [];
foreach($memberIds as $member){
$row = [
$id,
$title,
$content,
];
}
try{
Yii::$app->db->createCommand()
->batchInsert(TABLE::class,[
'id',
'title',
'content'
],$row)
} catch(Exception $e){
return false;
}