您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

PHP中ereg 跟ereg _replace的配合

2024/5/12 3:18:25发布36次查看
php中ereg 和ereg _replace的配合
'fine',
? 2 => 'overcast',
? 3 => 'rainy' );
while (ereg ('{([0-9]+)}', $text, $regs)) {
? $found = $regs[1];
? $text = ereg_replace(\{.$found.\}, $daytype[$found], $text);
}
echo $text\n;
// this is a fine day, not overcast and rainy.
?>结果:this is a fine day, not overcast and rainy
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product