作者kevin10449 (鹽酥雞)
看板PHP
標題[討論]php開檔txt取代字串
時間Fri Nov 10 13:53:05 2017
想請問假設記事本內容如下
abc,qwe,zxc
把 , 取代為tab
abc qwe zxc
存檔
有什麼方法可行,謝謝
--
Sent from my Windows
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.232.129.65
※ 文章網址: https://www.ptt.cc/bbs/PHP/M.1510293187.A.FD6.html
推 Jerr: str_replace(",", "\t", $str) 11/10 13:55
→ MOONRAKER: 超簡單的 11/10 16:43
→ banqhsia: 用 preg_replace() 11/20 00:02