<?php //编码为UTF-8 header("content-type:text/html; charset=utf-8"); //将字符串中间的某一个替换成别的 $res = str_replace($yuan,$hou,$res); ?>