tt
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user