file() as sleipnir214 posts, will split the file into an array using the newline character as the delimiter (but keeping the delimiter at the end of each line).
when you say carriage return do you really mean the CR, or the LF or the combination of the two (CRLF)? if you mean anything other the the LF (alone) then you will need to use a combination of file_get_contents() and explode()