Lowercase
Lowercase - Make a string lowercase.
Lowercase only works with string
, any other type is ignored.
Basic usage
use Jawira\Sanitizer\Filters as Sanitizer;
class User {
#[Sanitizer\Lowercase]
public string $username;
}
Parameters
No parameters.
Examples
Convert string to lowercase letters.
use Jawira\Sanitizer\Filters as Sanitizer;
class Article {
#[Sanitizer\Lowercase]
public string $keywords;
}
"HELLO" → "hello"
"Foo Bar" → "foo bar"
"Γεια σας" → "γεια σας"