<?php
$find = array('a','b');
$replace = array('A','B');
$string = 'abcdefg';
$top = str_replace($find,$replace,$string);
echo $top;
结果:
ABcdefg
<?php
$find = array('a','b');
$replace = array('A','B');
$string = 'abcdefg';
$top = str_replace($find,$replace,$string);
echo $top;
结果:
ABcdefg
本文标题:字串批量替换
本文链接:https://www.haomeiwen.com/subject/ixajpltx.html
网友评论