使用PHP将文本文件行转换为数组

时间:2010-01-23 21:56:46

标签: php file text

如何使用PHP将文本文件的行放入数组中?感谢。

1 个答案:

答案 0 :(得分:4)

$array = file('filename.txt');