<?php mb_strtolower(string $string, ?string $encoding = null): string
<?php public static function contains($haystack, $needles, $ignoreCase = false) { if ($ignoreCase) { $haystack = mb_strtolower($haystack); } if (! is_iterable($needles)) {
<?php foreach ($needles as $needle) { if ($ignoreCase) { $needle = mb_strtolower($needle); } if ($needle !== '' && str_contains($haystack, $needle)) {
<?php public static function lower($value) { return mb_strtolower($value, 'UTF-8'); }
<?php $words = preg_split('/\s+/', $value, -1, PREG_SPLIT_NO_EMPTY); $words[0] = ucfirst(mb_strtolower($words[0])); for ($i = 0; $i < count($words); $i++) { $lowercaseWord = mb_strtolower($words[$i]);
<?php $words[0] = ucfirst(mb_strtolower($words[0])); for ($i = 0; $i < count($words); $i++) { $lowercaseWord = mb_strtolower($words[$i]); if (str_contains($lowercaseWord, '-')) { $hyphenatedWords = explode('-', $lowercaseWord);