php 的pre_replace()问题:
答案:4 悬赏:80
解决时间 2021-01-12 15:24
- 提问者网友:藍了天白赴美
- 2021-01-12 10:40
php 的pre_replace()问题:
最佳答案
- 二级知识专家网友:人间朝暮
- 2021-01-12 11:55
$newrow = 'in';
$str = 'in the rooming, he got into the room, when he\'s ordered an inexpensive.';
$pttn = "$1";
$str = preg_replace("/\b($newrow)\b/i",$pttn,$str);
var_dump($str);
?>
全部回答
- 1楼网友:未来江山和你
- 2021-01-12 15:23
$str = preg_replace(‘/^in$/i’,$pttn,$str)
- 2楼网友:上分大魔王
- 2021-01-12 14:14
$pttn=a;
$str=asd afdsfaf asdfasdfasdf;
$str = preg_replace("$pttn",$pttn,$str);
$str=asd afdsfaf asdfasdfasdf;
$str = preg_replace("$pttn",$pttn,$str);
- 3楼网友:渊鱼
- 2021-01-12 13:10
我暂时保留我的看法!
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯