CKTIS / PHP
strtolower()
Verkleinert alle ASCII-Buchstaben im String und erhält sonstige Bytes.
Version: PHP 8.4; repository runtime, production runtime not attested
Syntax
strtolower(string $string): stringVerkleinert alle ASCII-Buchstaben im String und erhält sonstige Bytes. Seit PHP 8.2 ist dies locale-unabhängig. Akzentuierte UTF-8-Großbuchstaben bleiben groß. Für Unicode-Text eine geeignete Mehrbyteumwandlung wählen.
Signatur
strtolower(string $string): string
Ausgabe des Beispiels
["abc-12","École"]
Beispiele
<?php
echo json_encode([strtolower("ABC-12"),strtolower("\u{00C9}COLE")],JSON_UNESCAPED_UNICODE);
Ergebnis
["abc-12","École"]