I have an array with information which looks more or less like this:
$data[] = array(\'content\'=>\'asd\'); $data[] = array(\'content\'=>\'asdf\');
If you do use ZF2 then solution might be like this:
$insert = $this->getSql()->insert(); foreach ($values as $value) { $relation = array( 'column_one' => $value, 'column_two' => $value ); $insert->values($relation, Insert::VALUES_MERGE); } $insertRes = $this->executeInsert($insert);