Fastest way to replace string in PHP

前端 未结 4 898
暗喜
暗喜 2020-12-07 01:51

I need to replace some string in a PHP code to make it look better. What would be the best way to go about that?

4条回答
  •  攒了一身酷
    2020-12-07 02:30

    preg_replace
    

    Is a good way to go and uses regular expressions so you have flexibility as to how to do it.

提交回复
热议问题