<?php
$retorno = [
[ 'nome', 'sobre_nome' ],
[ 'nome1', 'snome1' ],
[ 'nome2', 'snome2' ],
[ 'nome3', 'snome3' ]
];
$chaves = $retorno[0];
$novo = [];
for($i=1; $i < count($retorno); $i++){ $novo[] = [
$chaves[0] => $retorno[$i][0],
$chaves[1] => $retorno[$i][1]
];
}
PD9waHAKCiRyZXRvcm5vID0gWwogIFsgJ25vbWUnLCAnc29icmVfbm9tZScgXSwKICBbICdub21lMScsICdzbm9tZTEnIF0sCiAgWyAnbm9tZTInLCAnc25vbWUyJyBdLAogIFsgJ25vbWUzJywgJ3Nub21lMycgXQpdOwoKJGNoYXZlcyA9ICRyZXRvcm5vWzBdOwokbm92byA9IFtdOwpmb3IoJGk9MTsgJGkgPCBjb3VudCgkcmV0b3Jubyk7ICRpKyspewogICRub3ZvW10gPSBbCiAgICAkY2hhdmVzWzBdID0+ICRyZXRvcm5vWyRpXVswXSwKICAgICRjaGF2ZXNbMV0gPT4gJHJldG9ybm9bJGldWzFdCiAgXTsKfQoKcHJpbnRfcigkbm92byk7