public function remove($element)
    {
        $currentValue = $this->getRawValue();

        if (($key = array_search($element, $currentValue)) !== false) {
            unset($currentValue[$key]);
            $this->setRawValue($currentValue);
        }
    }
public function remove($element)
    {
        $currentValue = $this->getRawValue();

        if (($key = array_search($element, $currentValue)) !== false) {
            unset($currentValue[$key]);
            $this->setRawValue($currentValue);
        }
    }
public function remove ( $ element ) { $ currentValue = $ this -> getRawValue ( ) ; if ( ( $ key = array_search ( $ element , $ currentValue ) ) !== false ) { unset ( $ currentValue [ $ key ] ) ; $ this -> setRawValue ( $ currentValue ) ; } }
Remove an element from the list.

@param $element
Remove an element from the list .