Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

lc

Converts a string to lowercase.

Returns a lowercased copy of STRING. For ASCII input, an in-place byte mutation fast path avoids allocation when a TARG pad slot is available. For Unicode input, Rust’s to_lowercase() is used, which handles case mappings that change byte length.

Synopsis

$lower = lc($string);
$lower = lc('HELLO');   # "hello"

See Also

uc, ucfirst, lcfirst