For example, string:
I|You|He
How to replace with
Pig|Cat|Dog
$str = "I|You|He"; $replace_str = str_replace(array("I","You","He"),array("Pig","Cat","Dog"),$str); print($replace_str); php output: "I|you|dog"
认证0级讲师
How did the poster test it and under what environment? The code provided by the poster is the correct answer
How did the poster test it and under what environment? The code provided by the poster is the correct answer