strtoupper

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

        foreach ($event->getHeaders() as $header => $values) {

            foreach ($values as $value) {

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

                $request->setCustomVar($key, $value);

            }

        }
<?php     {


        if (isset($event['httpMethod'])) {

            $this->method = strtoupper($event['httpMethod']);

        } elseif (isset($event['requestContext']['http']['method'])) {


            $this->method = strtoupper($event['requestContext']['http']['method']);
<?php             $this->method = strtoupper($event['httpMethod']);

        } elseif (isset($event['requestContext']['http']['method'])) {


            $this->method = strtoupper($event['requestContext']['http']['method']);

        } else {

            throw new InvalidLambdaEvent('API Gateway or ALB', $event);

        }