What does the $ var & 1 syntax in array_filter mean?

Source: Internet
Author: User
& Amp; yes. what does one mean? it doesn't seem to be a reference transfer. then, the result is 3. I don't know much about it. who can give me two sentences, thank you {code ...} & yes. what does it mean? it doesn't seem to be a reference transfer. then the result is 3. I don't know much about it. who can give me two sentences? thank you.



  Print result Array ([3] => 3)

Reply content:

& Yes. what does it mean? it doesn't seem to be a reference transfer. then the result is 3. I don't know much about it. who can give me two sentences? thank you.



  Print result Array ([3] => 3)

Php bitwise operator-bitwise AND, test_odd is a function that determines an odd number.

However, some important words in this section are in English:

If&,|,^Both operands of are strings, which first converts the strings into the corresponding ascii code and then bitwise operations. In other cases, convert them into integers before bitwise operations.

So althoughAThe ascii code is 97, but it will still be filtered out.

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.