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?