Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //https://stackoverflow.com/questions/8163746/how-to-replace-certain-parts-of-my-string
- $find = ['a','b','c','z','y','x'];
- $replace = ['z','y','x','a','b','c'];
- echo str_replace($find,$replace,'abczyx');
- //Expected output: zyxabc
- //Actual output: abcabc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement