使用此函数,您可以强制字符串只包含大写字符。
注意 此函数仅检测 A-Z 中的 26 个英文字母。
string_upper(string);
String
str1 = "Hello World";str2 = string_upper(str1);
上面的代码将变量 str2 设置为 "Hello World"。