How do I replace certain parts of my string?

后端 未结 5 1044
孤独总比滥情好
孤独总比滥情好 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条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-22 05:05

    strtr ($str, array ('a' => ''));
    

    Or to answer your question more precisely:

    strtr ("Hello, my name is Santa", array ('a' => ''));
    

提交回复
热议问题