Relational array to batchInsert array

Hi all,

So I have pulled data with a Query()

Array ( [0] => Array ( [account_id] => 413 [credit] => 10 [comment] => Referral Credit ) [1] => Array ( [account_id] => 798 [credit] => 10 [comment] => Referral Credit ) )

Now I want to insert that array with a batchInsert command but that requires one array with the columns and one array with the data.

Simple question - does Yii2 have a built in function to do this conversion?

Thanks.