classes/storage/AbstractUserStorage.php
public function removeFromList($sKey, $sValue)
    {
        if (empty($sKey) || empty($sValue)) {
            return;
        }

        //Get value from storage
        $arValueList = $this->getList($sKey);

        $iPosition = array_search($sValue, $arValueList);
        if ($iPosition === false) {
            return;
        }

        unset($arValueList[$iPosition]);
        $arValueList = array_values($arValueList);

        $this->put($sKey, $arValueList);
    }
public function removeFromList($sKey, $sValue)
    {
        if (empty($sKey) || empty($sValue)) {
            return;
        }

        //Get value from storage
        $arValueList = $this->getList($sKey);

        $iPosition = array_search($sValue, $arValueList);
        if ($iPosition === false) {
            return;
        }

        unset($arValueList[$iPosition]);
        $arValueList = array_values($arValueList);

        $this->put($sKey, $arValueList);
    }
public function removeFromList ( $ sKey , $ sValue ) { if ( empty ( $ sKey ) || empty ( $ sValue ) ) { return ; } //Get value from storage $ arValueList = $ this -> getList ( $ sKey ) ; $ iPosition = array_search ( $ sValue , $ arValueList ) ; if ( $ iPosition === false ) { return ; } unset ( $ arValueList [ $ iPosition ] ) ; $ arValueList = array_values ( $ arValueList ) ; $ this -> put ( $ sKey , $ arValueList ) ; }
Remove value from list
@param string $sKey
@param string $sValue
Remove value from list