Wrap the output alert content in PHP

Source: Internet
Author: User
Before doing the prompt with very normal, can in the output alert to "prompt content one" and "prompt content two" line display, but today with the echo output is not good, the reason is estimated to put \ n as HTML inside the line, because when viewing the source file on the page, found that \ n has no, and "prompt content a "and" Prompt content two "in the interval of a line, equal to the entire statement is broken, so click on the prompt box will not prompt, the solution is to write:
echo "";
That is to write \\n, note, I use JavaScript, if using VBScript is vbCrLf to solve.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

The above is introduced in PHP to make the output of the alert content line, including the aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Related Article

    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.