From ad49e1382bd68b5ac8b5f92c9bf4048b260d9249 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Sun, 19 May 2024 16:28:22 +0200 Subject: [PATCH] tt --- app/CustomFuncPao.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index ad6d7fbc..933a5223 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -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) {