PHP long string definition method

高洛峰
Release: 2023-03-02 16:14:02
Original
1821 people have browsed it

Copy the code The code is as follows:

<?php 
$x=&#39;<html><body>我很长,如何换行呢?我很长, 
如何换行呢?我很长,如何换行呢?我很长, 
如何换行呢?我很长,如何换行呢?</body></html>&#39;; 
$xx=<<<html 
<html><body>我不长,我不长,我不长, 
我不长,我不长,我不长,我不长,我不长,我不长,我不长, 
我不长,我不长,我不长,我不长,我不长,?</body></html> 
html; 
echo$xx; 
?>
Copy after login


Related labels:
php
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!