Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Parses the string into variables
<?php parse_str(string $string, array &$result): void
<?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);

        }