Contents that posted a long time ago may be obsolete and may not reflect my current opinion.
PHPer 们应该都知道 str_replace
函数,而如何使用数组批量替换某字符串内的子串,这里有个骚操作。
话不多说,直接上代码:
$map = [ |
Contents that posted a long time ago may be obsolete and may not reflect my current opinion.
PHPer 们应该都知道 str_replace
函数,而如何使用数组批量替换某字符串内的子串,这里有个骚操作。
话不多说,直接上代码:
$map = [ |