Re: 有關於讀取txt
剛剛翻了一下php手冊
array file ( string $filename [, int $flags [, resource $context ]] )
flags參數裡面有個
FILE_IGNORE_NEW_LINES
Do not add newline at the end of each array element
所以根本只要加個參數就好了阿orz...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.114.203.6
推
06/22 16:45, , 1F
06/22 16:45, 1F
推
06/23 09:25, , 2F
06/23 09:25, 2F
推
06/23 09:31, , 3F
06/23 09:31, 3F
討論串 (同標題文章)
完整討論串 (本文為第 4 之 4 篇):
2
10