Created
August 11, 2014 18:11
-
-
Save enlacee/345327a6804585de6657 to your computer and use it in GitHub Desktop.
Claen return car (file simple.txt) windows linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
\r is carriage return; | |
\n is line feed. | |
* | |
*/ | |
// clean code Even better normalize the text. because you never know what OS visitors uses. | |
$getdata = str_replace("\r\n", "\n", $getdata); | |
$arr = explode("\n", $getdata); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment