Home > Backend Development > PHP Tutorial > Wrap the output alert content in php

Wrap the output alert content in php

WBOY
Release: 2016-07-29 09:15:43
Original
1735 people have browsed it
In the past, it was normal to use for prompts. The "prompt content one" and "prompt content two" could be displayed in new lines in the output alert, but today it is not easy to use echo output. , the reason is probably that n is used as a line break in html, because when viewing the source file on the page, it is found that n is no longer there, and there is a line between "prompt content one" and "prompt content two", which is equivalent to the entire statement being broken. is on, so when you click again, there will be no prompt in the prompt box. The solution is to write:
echo "
";
That is, write \n as OK. Note that I use javascript. If you use vbscript, use vbCrlf to solve it.

Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

The above introduces how to wrap the output alert content in PHP, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template