[討論] php開檔txt取代字串

作者: kevin10449 (鹽酥雞)   2017-11-10 13:53:05
想請問假設記事本內容如下
abc,qwe,zxc
把 , 取代為tab
abc qwe zxc
存檔
有什麼方法可行,謝謝
作者: Jerr (身為老爸老媽嚕..)   2017-11-10 13:55:00
str_replace(",", "\t", $str)
作者: MOONRAKER (㊣牛鶴鰻毛人)   2017-11-10 16:43:00
超簡單的
作者: banqhsia (BEN)   2017-11-20 00:02:00
用 preg_replace()

Links booklink

Contact Us: admin [ a t ] ucptt.com