How is the exclamation point of php used? Just a piece of code. let me explain it to the younger brother.

Source: Internet
Author: User
How is the exclamation point of php used? Just a piece of code. let me explain it! $ This-& gt; alias & nbsp; & amp; & nbsp; $ this-& gt; alias & nbsp ;=& nbsp; $ this-& gt; table; where the variable type is & nbsp; & nbs php exclamation point? Just a piece of code. let me explain it to you.
! $ This-> alias & $ this-> alias = $ this-> table;
Where the variable type is
/* Alias */
Var $ alias = '';
/* Database table mapped */
Var $ table = '';

The arithmetic priority of this code is unknown. the exclamation point is not ,! $ This-> alias is a Boolean value, $ this-> alias = $ this-> table; it is also a Boolean value, and two Boolean values are used for & operation, there is no place to store the results. what should I do? Is it wrong for me to understand? Share To: alias? &&? $ This-> alias? =? $ This-> table; where the variable type is ???? /*? Alias? */???? Var? $ Alias? =? '';?? /... 'Data-pics = ''>
------ Solution --------------------
Equivalent
If (! $ This-> alias ){
$ This-> alias = $ this-> table;
}

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.