Read each line of txt file to new array element

The Solution to Read each line of txt file to new array element is


If you don't need any special processing, this should do what you're looking for

$lines = file($filename, FILE_IGNORE_NEW_LINES);

~ Answered on 2011-05-28 04:48:46


Most Viewed Questions: