Hi, I am not familiar with the following syntax which has ( ) at the right side of = , and it has !== inside of ( ). Can any body explain it to me? Thanks for any help in advance. $this->valid = (FALSE !== reset($this->array));
OK !== means this the same as != with the difference that it will also compare the type. Now you need to remember that TRUE and FALSE can also be represented by 1 and 0. So what this person does here is to double check that the return from the reset is unequal to FALSE. if he would have done != and reset function returns 0 it would think it is the same. The person has put brackets around it as the brackets will return true or false just like when using if condition
Let me see if I understand this totally. If reset($this->array) is true then it is not equal to FALSE (statement is true) then the $this->valid will be true. If reset($this->array) is false then it is equal to FALSE (statement is false) then the $this_valid will be false.