I have a variable with the contents of the array is as below
$dataRoles = [
0 => [
1 => [
It's impossible to make insert into 2 different tables. It's only possible to insert into 1 table but many records using bulk insert e.g:
insert into table (fld1, fld2) values ("val1", "val2"), ("val3", "val4"), ...