lib/ShortPixel/Result.php
private function findItem($item, $arr, $key) {
        for($j = 0; $j < count($arr); $j++) {
            if($arr[$j]->$key == $item->$key) {
                return $j;
            }
        }
        return false;
    }
private function findItem($item, $arr, $key) {
        for($j = 0; $j < count($arr); $j++) {
            if($arr[$j]->$key == $item->$key) {
                return $j;
            }
        }
        return false;
    }
private function findItem ( $ item , $ arr , $ key ) { for ( $ j = 0 ; $ j < count ( $ arr ) ; $ j ++ ) { if ( $ arr [ $ j ] -> $ key == $ item -> $ key ) { return $ j ; } } return false ; }
finds if an array contains an item, comparing the property given as key
@param $item
@param $arr
@param $key
@return the position that was removed, false if not found
finds if an array contains an item comparing the property given as key