As a mainstream website construction language, PHP has many traps and requires the programmer's idea. In the PHP script, if you write the following code & lt ;? Php & lt;/script & gt ;? & Gt; This php script does not prompt any errors, but directly outputs & quot ;? & Gt; & quot ;. This is incredible, so we will write the following... PHP as the mainstream website construction language. There are many traps in the use process and the programmer's idea is required. In the PHP script, if you write the following code: This php script does not prompt any errors, but directly outputs "?> ". This is incredible, so let's write the following code: This time, a parsing error is Prompted. Parse error: syntax error, unexpected '<' in... why is no error prompted in the first script? At this time, we need to carefully read the relevant PHP Manual there are varous ways of starting a block of PHP code: four pairs of different start and end tags can be used in PHP. Two of them, And
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.