常用字符串函数_PHP
程序员文章站
2022-06-05 23:30:05
...
//颠倒字串
print("abcdefg 颠倒 ");
print(strrev("abcdefg")."
");
//小写字串
print("小写: ".strtolower("Hello World")."
");
//大写字串
print("大写: ".strtoupper("Hello World")."
");
//去空格
$text = " whitespace ";
print("\"" . trim($text) . "\"");
?>