我有两个数组,其中一个包含一个新的键名
$assoc = ['name', 'lastname', 'pesel'];
第二个看看这个
$inputs = ['John', 'Don', '987987', 'Mike', 'Evans', '89779' ];
Array$assoc
是新的键名,我想将 ,[0]
更改[1]
为['name']
etc
array(2) {
['person'] =>
array(3) {
['name'] => string(4) "John"
['lastname'] => string(3) "Don"
['pesel'] => string(6) "987987"
}
['person'] =>
array(3) {
['name'] => string(4) "Mike"
['lastname'] => string(5) "Evans"
['pesel'] => string(5) "89779"
}
}
谢谢你的帮助