php中替换字符串函数strtr()和str_repalce()的用法与区别 首先来看看这个php字符串替换函数strtr()的两种用法:strtr(string,from,to)或者strtr(string,array)首先 strrepalce