Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Make a string lowercase
<?php strtolower(string $string): string
<?php     public function format($type)

    {

        switch (strtolower($type)) {



            case 'rgba':

                return $this->getRgba();
<?php         $this->setFormat($format);

        $this->setQuality($quality);



        switch (strtolower($this->format)) {



            case 'data-url':

                $this->result = $this->processDataUrl();
<?php             return $this;

        }



        switch (strtolower($type)) {

            case 'bool':

            case 'boolean':

                $valid = \is_bool($value);
<?php         $size = $image->getSize();

        $dst = clone $size;



        switch (strtolower($mode)) {

            case 2:

            case 'v':

            case 'vert':
<?php         foreach ($away as $key => $value) {

            $away[$key] = strtolower($value);

        }
<?php         }




        switch (strtolower($base)) {

            case 'transparent':

            case 'trans':

                $checkTransparency = true;
<?php         $mime = finfo_file(finfo_open(FILEINFO_MIME_TYPE), $path);




        switch (strtolower($mime)) {

            case 'image/png':

            case 'image/x-png':

                $core = @imagecreatefrompng($path);
<?php             default:

                throw new NotReadableException(

                    sprintf("Unsupported image type %s. GD driver is only able to decode JPG, PNG, GIF, BMP or WebP files.", strtolower($mime))

                );

        }
<?php                 $box = $this->getBoxSize();



                $align = is_null($this->align) ? 'left' : strtolower($this->align);

                $valign = is_null($this->valign) ? 'bottom' : strtolower($this->valign);
<?php                 $box = $this->getBoxSize();



                $align = is_null($this->align) ? 'left' : strtolower($this->align);

                $valign = is_null($this->valign) ? 'bottom' : strtolower($this->valign);




                switch ($align.'-'.$valign) {
<?php             }




            switch (strtolower($this->align)) {

                case 'center':

                    $posx = ceil($posx - ($width / 2));

                    break;
<?php             }




            switch (strtolower($this->valign)) {

                case 'center':

                case 'middle':

                    $posy = ceil($posy - ($height / 2));
<?php     {

        $mode = $this->argument(0)->value('h');



        if (in_array(strtolower($mode), [2, 'v', 'vert', 'vertical'])) {


            return $image->getCore()->flipImage();

        } else {
<?php         foreach ($away as $key => $value) {

            $away[$key] = strtolower($value);

        }
<?php         }




        switch (strtolower($base)) {

            case 'transparent':

            case 'trans':

                $checkTransparency = true;