Understanding the logic with 2 returns?
I came across a method today that has the following at the end of it:
Now help me understand this... That line basically says, "return TRUE if BOTH in_array functions return TRUE," correct? Otherwise, I'm assuming it would return FALSE because no other return statements exist in the method.
return in_array($id, $arr) && in_array($this->id, $arr);
Is the form that's used here done a lot? I've never seen it done this way... Usually, you only see a singular return statement.