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

    {

        $validLogLevels = array_map(function (string $level) {

            return strtolower($level);

        }, array_keys(Logger::getLevels()));



        $validLogLevelsString = implode(',', $validLogLevels);
<?php     public function hasNamespaceThatContainsClassName(string $className): bool

    {

        return $this->getNamespaces()->contains(function ($namespace) use ($className) {

            return Str::startsWith(strtolower($className), strtolower($namespace));

        });

    }