Phpecho output html issue closed online

Source: Internet
Author: User
Phpecho output html problems. it's weird to paste online. I echo every html operation is echo" "; It should all be blue, but I have blue, gray, and so on.


Reply to discussion (solution)

Your code is not escaped

Echo"
  "; // Or use single quotes echo'
  ';

Your code is not escaped

Echo"
  "; // Or use single quotes echo'
  ';


Now it's okay. But the page does not appear. All pages are designed in html to copy the code. Add echo to output the data. I don't know. If you do not put echo on. The table is displayed.




The double quotation marks in double quotation marks are not added to the clothes \, or they are enclosed in single quotation marks. Style reports an error even if no echo output is used.

It is recommended that you do not send a picture to ask questions, so that you can easily copy the code!

You might as well learn
Heredoc syntax structure
Nowdoc syntax structure (from PHP 5.3.0)
The two assignment methods

$ Str = <
   
   

It is recommended that you do not send a picture to ask questions, so that you can easily copy the code!

Echo "test ";
?>


It is recommended that you do not send a picture to ask questions, so that you can easily copy the code!



Should code be sent? is code always convenient for debugging? isn't code sent again by someone who helps you debug it?

Why is it difficult to write html directly using echo in html?

You can try echo directly.

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.