Why is an error reported when I define a string "<kph>" in the following way?

Source: Internet
Author: User
Tags php error
I use the following method to define a String & lt; kph & gt;. why is an error reported? I use the following method to define a String" "Why is an error reported? If it is changed to "123", it will be okay. why?
----



$ Aay = array (" ", '12 ');
Echo $ aay [0];
?>


Reply to discussion (solution)

Who reported the error? Error message

The following error message is displayed:

HTML1521: invalid "" or the end of the file. All elements with the start mark should end correctly before the end of the document.
File: ss. php, row: 4, column: 6

It's just a false positive in your editor.

I used the IE browser for debugging and running. this error report is not an editor report.

This is not a php error.
You printed the string in php. The tag is parsed by the browser.
It is normal for browsers like IE in ancient times to report an error if they cannot find the closed tag.
Google will not report any errors in the new age.
So change the browser first, or do not output This special content

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.