all to small letters php code example Example: php code to convert to small letter $str = strtolower($str);