How do I replace certain parts of my string?

后端 未结 5 1040
孤独总比滥情好
孤独总比滥情好 2020-11-22 04:29

How can I replace a certain part of my string with another one?

Input string:

\"Hello, my name is Santa\"

How can I change all

5条回答
  •  猫巷女王i
    2020-11-22 04:48

    This can work also without of any of PHP string functions, here changing your 'a' to '&' ampersand character:

    for ($i=0; $i

提交回复
热议问题