This commit is contained in:
paoloar77
2024-05-19 16:28:22 +02:00
parent 3fe5064991
commit ad49e1382b

View File

@@ -34,7 +34,11 @@ function updateValueByKey(&$array, $key, $newValue) {
}
}
$array[$key] = $newValue;
// push the new value in the array
$array[] = [
'key' => $key,
'value' => $newValue
];
}
function updateValueByKeyArr(&$array, $key, $newValue) {