If you don’t need any special processing, this should do what you’re looking for
$lines = file($filename, FILE_IGNORE_NEW_LINES);
More Related Contents:
- PHP create new array by value
- Get first and second element of array [duplicate]
- Removing array of arrays for certain inner values in PHP
- How to remove duplicate values from a multi-dimensional array in PHP
- Convert multidimensional array into single array
- PHP Sort Array By SubArray Value
- Using a string path to set nested array data [duplicate]
- create array tree from array list
- Finding the subsets of an array in PHP
- Save PHP array to MySQL?
- Associative array, sum values of the same key
- php implode (101) with quotes
- Echo a multidimensional array in PHP
- Combinations, Dispositions and Permutations in PHP
- PHP foreach with Nested Array?
- PHP hierarchical array – Parents and childs
- Selecting multiple array elements
- Sorting multidim array: prioritize if column contains substring, then order by a second column
- How to sort an array of arrays in php?
- Create an assoc array with equal keys and values from a regular array
- php array find duplicates, sum them up & delete duplicates
- Search and replace multiple values with multiple/different values in PHP5?
- PHP get both array value and array key
- Accessing JSON array after json_decode/multidimensional array
- Remove item from array if it exists in a ‘disallowed words’ array
- Efficiency of using foreach loops to clear a PHP array’s values
- CMS Routing in MVC
- Best way to initialize (empty) array in PHP
- Recursive array_search
- Conditionally add associative element to array