标签:blog xpl lod span str amp this 大小写 eve
<?php // your code goes here function strreverse($str){ $strlower=strtolower($str); $tmpstr=implode(" ",array_map(‘reverse‘,explode(" ",$strlower))); $strlen=strlen($str); while($strlen>0){ if($str[$strlen-1]>64 && $str[$strlen-1]<92){ $tmpstr[$strlen-1]=$tmpstr[$strlen-1]+32; } $strlen--; } } $str1="This is an Apple on eBay" print(strreverse($str1)); ?>
标签:blog xpl lod span str amp this 大小写 eve
原文地址:http://www.cnblogs.com/xqnq2007/p/7231694.html