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.Code:return in_array($id, $arr[0]) && in_array($this->id, $arr[1]);
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.



Reply With Quote



Bookmarks