I define a string "<kph>" in this way, why do I get an error?

Source: Internet
Author: User
I use the following method to define a string " ", why the error? If you change to "123", it's okay, what's going on?
----



$aay = Array (" ", ' 12 ');
echo $aay [0];
?>


Reply to discussion (solution)

Who's the error? Report What's wrong

This error message appears:

HTML1521: Does not meet the required "" or end of file. All elements that have a start tag should end correctly before the document ends.
File: ss.php, line: 4, Column: 6

It's just a false alarm from your editor.

I use the IE browser debugging run, only this error report, not the editor's report.

It's not PHP's fault.
You print the string in PHP , and the browser parses it into a label.
It's normal for an ancient browser like IE to not find the closing tag.
The new era of Firefox Google will not be an error
So change the browser first, or don't export this particular 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.