Today I made 2 Yongji PHPTRUE = 2-php tutorial

Source: Internet
Author: User
Today, I am a member of Yongji PHPTRUE2. Today, my colleague reported that he had voted for the voting function. after carefully checking the code, I did not find any problem ?? After the last row is checked, the problem is found to be a bool integer? & Lt ;? Php $ str; var_dump (empty ($ str )?); Exit ;? $ Str1; var_du today commits 2 mistakes when Yongji php true = 2

Today, my colleague always reported a prompt that he had voted for the voting function. after carefully checking the code, I did not find any problem?

?

Check the last row to find that it isBool = integerThis problem

?

$ Str = "";

Var_dump (empty ($ str )? );

Exit;

?


$ Str = "1 ";
Var_dump ($ str [0]);
$ Str = implode ('|', $ str );
// Var_dump ($ str );


Exit;

$ A = 1 = 1;
$ B = 2 = $;

Var_dump ($ B );
Br ("\ $ B =". $ B );

Var_dump (TRUE = 2 );


Exit;

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.