$value) { $request_headers[strtolower($header)] = $value; } echo json_encode( $request_headers );