Php output html code-php Tutorial

Source: Internet
Author: User
Php outputs the html code in the html code database (converted ):






50 years ago, General Charles de-Charles pushed the two great countries in China and France to shake hands with remarkable strategic vision and extraordinary political courage, it has set up a model for peaceful coexistence and win-win cooperation among countries with different social systems for the international community, and has a significant and far-reaching impact on the international strategic landscape.





Confucius said: "Fifty Days and destiny ." The 50-year development history of Sino-French relations has inspired both sides to maintain special friendship and make a good and win-win situation. Both parties believe that mutual respect and mutual trust and honest treatment are essential for maintaining healthy and stable development of Sino-French relations. Dare to advance and keep pace with the times is an important magic weapon for Sino-French relations to always be at the forefront of China's relations with Western countries. Mutual benefit and mutual benefit are the fundamental starting points for Sino-French relations to benefit the people of both countries for a long time. Independence and consistency while reserving differences are the spiritual basis for Sino-French coordination and cooperation in international affairs. Working together and facing the world is China and France's unremitting pursuit of peace and development in the changing world.



















In php, how do I add document. writeln to each row? For example:
$ Html = 'document. writeln ("

");
Ocument. writeln ("

");
';


Reply to discussion (solution)

$ Html = <
 
  


50 years ago, General Charles de-Charles pushed the two great countries in China and France to shake hands with remarkable strategic vision and extraordinary political courage, it has set up a model for peaceful coexistence and win-win cooperation among countries with different social systems for the international community, and has a significant and far-reaching impact on the international strategic landscape.



Confucius said: "Fifty Days and destiny ." The 50-year development history of Sino-French relations has inspired both sides to maintain special friendship and make a good and win-win situation. Both parties believe that mutual respect and mutual trust and honest treatment are essential for maintaining healthy and stable development of Sino-French relations. Dare to advance and keep pace with the times is an important magic weapon for Sino-French relations to always be at the forefront of China's relations with Western countries. Mutual benefit and mutual benefit are the fundamental starting points for Sino-French relations to benefit the people of both countries for a long time. Independence and consistency while reserving differences are the spiritual basis for Sino-French coordination and cooperation in international affairs. Working together and facing the world is China and France's unremitting pursuit of peace and development in the changing world.









Html; $ out = ''; $ exp = explode (PHP_EOL, $ html); foreach ($ exp as $ value) {$ out. = "document. writeln (". $ value. ");". PHP_EOL;} var_dump ($ out );

Why?
Isn't it easier to add a line break?

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.