string replace php to uppercase code example Example: php code to convert to small letter $str = strtolower($str);