usertest
usertest

Reputation: 27628

Text file lines into array with PHP

How would I put the lines of a text file into an array with PHP? Thanks.

Upvotes: 1

Views: 1877

Answers (1)

Matteo Riva
Matteo Riva

Reputation: 25060

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

Upvotes: 4

Related Questions