Results 1 to 4 of 4
May 10, 2013, 05:46 #1
Understanding the logic with 2 returns?
I came across a method today that has the following at the end of it:
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.