What does PHP mean! $ Status & amp; $ status $ pm [msgtoid] & amp; $ pm [new]; what does the PHP statement mean? ------ solution --------------------! $ Status & amp; $ status $ pm [msgtoid] & amp; what does the PHP statement mean?
! $ Status & $ status = $ pm ['msgtoid'] & $ pm ['new'];
What does PHP mean?
------ Solution --------------------
! $ Status & $ status = $ pm ['msgtoid'] & $ pm ['new'];
If! $ Status = 1 (that is, $ status = 0)
And $ status = $ pm ['msgtoid'] (the value of $ status after the assignment is not 0)
And $ pm ['new'] is not 0
So .....
------ Solution --------------------
! $ Status & $ status = $ pm ['msgtoid'] & $ pm ['new'];
! $ Status returns a BOOL value, indicating that the value is not $ status
The subsequent value assignment is performed only when the value of not $ status is true.
$ Status = $ pm ['msgtoid'] & $ pm ['new'];
$ Pm ['msgtoid'] & $ pm ['new'] returns BOOL values.
True is returned only when $ pm ['msgtoid'] and $ pm ['new'] are not empty, not 0, not false, or NULL.
------ Solution --------------------
! $ Status & $ status = $ pm ['msgtoid'] & $ pm ['new'];
Operation sequence:
(! $ Status) & ($ status = $ pm ['msgtoid'] & $ pm ['new']);
Equal (! $ Status) & $ pm ['msgtoid'] & $ pm ['new'];
In this case, the calculation result of $ pm ['msgtoid'] & $ pm ['new'] is assigned to $ status, which may be used by the following program or may cause a problem.