帝国内容作者可以把后面几位用星号代替

两种方法


<?php
$str = "ldh";
echo str_replace(substr($str, 1, 1), '*', $str);
?>


<?php
echo substr($navinfor[字段名],0,-3)."***";
?>

发表评论:

Powered By Z-BlogPHP 1.7.0

Copyright Www.Niaoseo.Com Rights Reserved.