Angular 4 per pattern transforms an array object with multiple values as follows status=approved&status=handling has some way to retrieve this array in the slim
By default this is not possible with PHP or Slim. BUT you could use this function to parse the Query string like you expected:
Code
function proper_parse_str($str)
{
// result array
$arr = [];
// split on outer delimiter
$pairs = explode('&', $str);
// loop through each pair
foreach ($pairs as $i) {
// split into name and value
list($name, $value) = explode('=', $i, 2);
// if name already exists
if (isset($arr[$name])) {
# stick multiple values into an array
if (is_array($arr[$name])) {
$arr[$name][] = $value;
} else {
$arr[$name] = [$arr[$name], $value];
}
} else {
// otherwise, simply stick it in a scalar
$arr[$name] = $value;
}
}
// return result array
return $arr;
}