From 08f8bb41f1c1b051fd25c2efc9765f48345e2acb Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Tue, 28 Feb 2023 10:49:32 +0100 Subject: [PATCH] TEMP : try with implode(array) --- Source/API/script/index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/API/script/index.php b/Source/API/script/index.php index d8fb9dd..7d1e71f 100644 --- a/Source/API/script/index.php +++ b/Source/API/script/index.php @@ -40,9 +40,7 @@ try{ } } $temp = array('response' => "Rien", 'test' => "Test Ici"); - foreach ($temp as $key => $value) { - $response->getBody()->write($key."=>".$value);//'"'.$key.'": "'.$value.'"'); - } + $response->getBody()->write(implode($temp));//'"'.$key.'": "'.$value.'"'); //return $response; return $response->withHeader('Content-type', 'application/json'); });