Hi, I know && is Logical Operators in programming language.
But when I go through the The Definite Guide to Yii , here is a example at
http://www.yiiframew...uide/form.table documents.
In the actionBatchUpdate() method, there is a statement says: $valid=$valid && $item->validate();
Could anyone tell me what does && means in this case?
Page 1 of 1
Could someone explain me what is &&
#2
Posted 02 August 2010 - 10:25 AM
czihong, on 02 August 2010 - 09:44 AM, said:
Hi, I know && is Logical Operators in programming language.
But when I go through the The Definite Guide to Yii , here is a example at
http://www.yiiframew...uide/form.table documents.
In the actionBatchUpdate() method, there is a statement says: $valid=$valid && $item->validate();
Could anyone tell me what does && means in this case?
But when I go through the The Definite Guide to Yii , here is a example at
http://www.yiiframew...uide/form.table documents.
In the actionBatchUpdate() method, there is a statement says: $valid=$valid && $item->validate();
Could anyone tell me what does && means in this case?
I the first operand evaluates to false, no need to evaluate the second operand.
/Tommy
Share this topic:
Page 1 of 1

Help













