How to automatically branch a piece of data

Source: Internet
Author: User
How can I take a piece of data automatic branch http://vwvvv.sinaapp.com/kww.php? Txt = 30/30826/5215401 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 !, PHP: how can I automatically branch a piece of data?
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 );

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.