日期:2014-05-17  浏览次数:20386 次

正则表达式
this is test  

把is 替换成 a 但 this不能变

------解决方案--------------------
echo preg_replace('/\bis\b/', 'a', 'this is test');//this a test