A very strange question

Source: Internet
Author: User
A very strange question: I want to output a value. of course, this value is printed after being referenced by js.
In the figure, the code in the blue box is removed, and the values below can be used out. the problem may be caused by the above code interference. However, the above code is irrelevant to the following code! Just declare a variable to echo it!
Why?


Reply to discussion (solution)

Echo $ arr [0] ['title'];

To enable
Echo "\ users ('{hitss'}.html ('$ var ');";
Result
Certificate ('{hitss'}.html ('xxxxx ');
Executed in the browser
Then, this identifier ('{hitss'}.html ('xxxxx'); must be marked in the script.

Since your program outputs js code, it is clear that the output code must comply with the js syntax rules. Otherwise, the execution of the js program will be terminated due to an error.

And you have 12 or 13 rows
Print_r ($ arr );
Echo'
';
The output is obviously not JavaScript code and cannot be checked by js syntax.
So it will not be executed into ('{hitss'}.html ('xxxxx ');

The truth is that

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.