How can I automatically split a piece of data into vwvvv. sinaapp. comkww. php? Txt30308265215401 in the source code of this article, the text is a branch, but directly open it and it becomes a space .. How can I open a branch ?? Thank you! ------ Solution -------------------- PHPcode $ strfile_get_contents
Http://vwvvv.sinaapp.com/kww.php? Txt = 30/30826/5215401
In the source code of this article, the text is a branch, but the text is opened directly and becomes a space ..
How can I open a branch ??
Thank you!
------ Solution --------------------
PHP code
$ Str = file_get_contents ("http://vwvvv.sinaapp.com/kww.php? Txt = 30/30826/5215401 "); $ str = iconv (" gb2312 "," UTF-8 ", $ str); echo nl2br ($ str );
------ Solution --------------------
I understand. I want to give the document. writeln string an error because of the line break, right?
The js line feed is "\". you can add a \ character at the end of each natural line.
Php code is
$ Text = parg_replace ("/[\ r \ n] +/s", '\ n', $ text );