array:2 [▼
0 => array:3 [▼
"id" => "15"
"name" => "6"
"role" => "3"
]
1 => array:3 [▼
"id" => "16"
"name" => "65"
"role" => "32"
]
]
y necesito que quede asi:
array:2 [▼
0 => array:3 [▼
"id" => "15"
"name" => "6"
"role" => "3"
"registro" => 100
]
1 => array:3 [▼
"id" => "16"
"name" => "65"
"role" => "32"
registro => 100
]
]
y lo estoy haciendo de esta manera:
Código PHP:
Ver original
foreach($diff1 as $key => $item) { foreach ($item as $key => $value) { $item['registro'] = 100; } }