<?php $str = abchelloabc; str_replace(['a','b','c'],'a',$str);//a或b或c都替換成a str_replace(['a','b','c'],['d','e','f'],$str);//a->d b->e c->f ?>
微信掃碼
關(guān)注PHP中文網(wǎng)服務(wù)號
QQ掃碼
加入技術(shù)交流群
Copyright 2014-2025 http://ipnx.cn/ All Rights Reserved | php.cn | 湘ICP備2023035733號