不使用系统函数,翻转字符串
function fanzhuan($str){
for($temp = ' ', $i = strlen($str)-1;$i >=0 ; $i--){
$temp .= substr($str,$i,1);
}
return $temp;
}
function fanzhuan($str){
for($temp = ' ', $i = strlen($str)-1;$i >=0 ; $i--){
$temp .= substr($str,$i,1);
}
return $temp;
}