strlen($s)                length of a string
strtoupper($s) / strtolower($s)   change case
trim($s)                  remove whitespace from both ends
str_replace($find, $rep, $s)      find and replace
substr($s, $start, $len)  extract part of a string
explode($delim, $s)       split string into an array
implode($glue, $arr)      join array into a string
str_contains($s, $sub)    true/false substring check
sprintf($fmt, ...$vals)   build a formatted string
ucwords($s)               capitalize each word
htmlspecialchars($s)      escape for safe HTML output
