Re: [請益] 讀檔取出資料(砍除文字檔標記)

看板PHP作者 (Angie My Love)時間18年前 (2007/09/20 16:44), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串7/11 (看更多)
回歸你第一篇的問題 剛作了測試 <? $file=file("aaa.txt"); for ($i=0;$i<count($file);$i++){ if (ord($file[$i][0])>128) echo $file[$i]."<br>"; } ?> 至於aaa.txt 就是你原始檔案 試試看吧 我的方法是第一行第一個字為國字才印出 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.59.228.12
文章代碼(AID): #16yZBJiv (PHP)
討論串 (同標題文章)
文章代碼(AID): #16yZBJiv (PHP)