TEMP : remove print_r, try with a foreach and with a =>
continuous-integration/drone/push Build is passing Details

master
dorian.hodin 2 years ago
parent b58fbc4bdb
commit 6cdf706b32

@ -40,8 +40,8 @@ try{
}
}
$temp = array('response' => "Rien", 'test' => "Test Ici");
foreach ($temp as $rep) {
$response->getBody()->write(json_encode($rep));//'"'.$key.'": "'.$value.'"');
foreach ($temp as $key => $value) {
$response->getBody()->write(json_encode($key."=>".$value));//'"'.$key.'": "'.$value.'"');
}
//return $response;
return $response->withHeader('Content-type', 'application/json');

Loading…
Cancel
Save