标题常用字符串函数(三)
日期:2008-01-22    作者:semirock   来源:444p.com
文章打印自: PHP学习之家
访问文章完全地址: http://www.444p.com/example/php-example/aid2008/
头部广告
常用字符串函数


<HTML>
<HEAD>
<TITLE>常用字符串函数(三)</TITLE>
</HEAD>
<BODY>
<?
 //颠倒字串
 print("abcdefg  颠倒  ");
 print(strrev("abcdefg")."<hr>");

 //小写字串
 print("小写: ".strtolower("Hello World")."<hr>");

 //大写字串
 print("大写: ".strtoupper("Hello World")."<hr>");

 //去空格
 $text = "     whitespace      ";
 print("\"" . trim($text) . "\"");
?>
</BODY>

</HTML>

责任编辑:aaa