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.