classes/collection/ElementCollection.php
public function diff($arExcludeIDList = [])
    {
        if (empty($arExcludeIDList) || $this->isEmpty()) {
            return $this->returnThis();
        }

        $this->arElementIDList = array_diff($this->arElementIDList, $arExcludeIDList);

        return $this->returnThis();
    }
public function diff($arExcludeIDList = [])
    {
        if (empty($arExcludeIDList) || $this->isEmpty()) {
            return $this->returnThis();
        }

        $this->arElementIDList = array_diff($this->arElementIDList, $arExcludeIDList);

        return $this->returnThis();
    }
public function diff ( $ arExcludeIDList = [ ] ) { if ( empty ( $ arExcludeIDList ) || $ this -> isEmpty ( ) ) { return $ this -> returnThis ( ) ; } $ this -> arElementIDList = array_diff ( $ this -> arElementIDList , $ arExcludeIDList ) ; return $ this -> returnThis ( ) ; }
Apply array_diff for element array list
@see  \Lovata\Toolbox\Tests\Unit\CollectionTest::testDiffMethod()
@link https://github.com/lovata/oc-toolbox-plugin/wiki/ElementCollection#diffarelementidlist
@param array $arExcludeIDList
@return $this
Apply array_diff for element array list