http-php the URL argument (the full period becomes an underscore), for the sake of explanation.

Source: Internet
Author: User

inside the . get parameter (full period in English) will become _ (underline in English).
I carefully analyzed the problem and found that it was true.

Online test Address:
http://moonlordapi.sinaapp.com/test.php?.=1
(Don't believe yourself.) )

So my question now is ...
1. Why is this? Is there any official explanation or description for this question?
2. Are there any other special symbols that can show such wonderful phenomena?

———————————————————— Gorgeous split-line ————————————————————

UPDATE:
The answer has been adopted.
But look http://php.net/manual/en/language.variables.external.php , that note was 7 years ago ...
I measured it myself (PHP version here is 5.4+):

The parameters of the space and the left bracket are ignored (and the description is different).
CHR-Chr (159) is not a common text character, it is not tested ...

Reply content:

inside the . get parameter (full period in English) will become _ (underline in English).
I carefully analyzed the problem and found that it was true.

Online test Address:
http://moonlordapi.sinaapp.com/test.php?.=1
(Don't believe yourself.) )

So my question now is ...
1. Why is this? Is there any official explanation or description for this question?
2. Are there any other special symbols that can show such wonderful phenomena?

———————————————————— Gorgeous split-line ————————————————————

UPDATE:
The answer has been adopted.
But look http://php.net/manual/en/language.variables.external.php , that note was 7 years ago ...
I measured it myself (PHP version here is 5.4+):

The parameters of the space and the left bracket are ignored (and the description is different).
CHR-Chr (159) is not a common text character, it is not tested ...

In PHP, you cannot use a period point (.) in a variable name. For example $a.b , a variable name that is not valid. As a result, PHP automatically replaces the dots with underscores.

In addition to the point, some other characters will be automatically replaced with underscores if they appear in the Get parameter name. The word list characters will be replaced automatically:

chr(32) ( ) (空格)chr(46) (.) (点)chr(91) ([) (中括号)chr(128) - chr(159) (多个字符)

Reference: http://php.net/manual/en/language.variables.external.php

  • Related Article

    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.