Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Make a string uppercase
<?php strtoupper(string $string): string
<?php         );



        if (str_starts_with($request->headers->get('CONTENT_TYPE'), 'application/x-www-form-urlencoded') &&

            in_array(strtoupper($request->server->get('REQUEST_METHOD', 'GET')), ['PUT', 'PATCH', 'DELETE'])) {

            parse_str($request->getContent(), $data);



            $request->request = new ParameterBag($data);
<?php         $results = [];



        foreach ($server as $key => $value) {

            $results[strtoupper($key)] = $value;

        }



        $results = array_merge(
<?php         $results = [];



        foreach ($headers as $key => $value) {

            $key = strtoupper(str_replace('-', '_', $key));



            if (! in_array($key, ['HTTPS', 'REMOTE_ADDR', 'SERVER_PORT'])) {

                $key = 'HTTP_'.$key;